public static class ServerEnvironment.TypeConfigurator
extends java.lang.Object
ServerEnvironment
for the given type.Modifier and Type | Method and Description |
---|---|
ServerEnvironment.TypeConfigurator |
use(Delivery delivery)
Assigns the specified
Delivery for the selected environment. |
ServerEnvironment.TypeConfigurator |
use(StorageFactory factory)
Assigns the specified
StorageFactory for the selected environment. |
ServerEnvironment.TypeConfigurator |
use(TracerFactory factory)
Assigns
TracerFactory for the selected environment. |
ServerEnvironment.TypeConfigurator |
use(TransportFactory factory)
Assigns the specified transport factory for the selected environment.
|
ServerEnvironment.TypeConfigurator |
useDelivery(ServerEnvironment.Fn<Delivery> fn)
Assigns a
Delivery obtained from the passed function. |
ServerEnvironment.TypeConfigurator |
useStorageFactory(ServerEnvironment.Fn<StorageFactory> fn)
Assigns a
StorageFactory obtained from the passed function. |
ServerEnvironment.TypeConfigurator |
useTracerFactory(ServerEnvironment.Fn<TracerFactory> fn)
Lazily uses the
TracerFactory obtained from the passed function. |
ServerEnvironment.TypeConfigurator |
useTransportFactory(ServerEnvironment.Fn<TransportFactory> fn)
Assigns a
TransportFactory obtained from the passed function. |
@CanIgnoreReturnValue public ServerEnvironment.TypeConfigurator use(Delivery delivery)
Delivery
for the selected environment.@CanIgnoreReturnValue public ServerEnvironment.TypeConfigurator useDelivery(ServerEnvironment.Fn<Delivery> fn)
Delivery
obtained from the passed function.
In case the Delivery
is never requested for the current server
environment type, the passed function will be not invoked.
fn
- the function to provide the Delivery
in response to
the currently configured server environment typeServerEnvironment.TypeConfigurator.use(Delivery)
@CanIgnoreReturnValue public ServerEnvironment.TypeConfigurator use(TracerFactory factory)
TracerFactory
for the selected environment.@CanIgnoreReturnValue public ServerEnvironment.TypeConfigurator useTracerFactory(ServerEnvironment.Fn<TracerFactory> fn)
TracerFactory
obtained from the passed function.
In case the TracerFactory
is never requested for the current server
environment type, the passed function will be not invoked.
fn
- the function to provide the TracerFactory
in response to
the currently configured server environment typeServerEnvironment.TypeConfigurator.use(TracerFactory)
@CanIgnoreReturnValue public ServerEnvironment.TypeConfigurator use(TransportFactory factory)
@CanIgnoreReturnValue public ServerEnvironment.TypeConfigurator useTransportFactory(ServerEnvironment.Fn<TransportFactory> fn)
TransportFactory
obtained from the passed function.
In case the TransportFactory
is never requested for the current server
environment type, the passed function will be not invoked.
fn
- the function to provide the TransportFactory
in response to
the currently configured server environment typeServerEnvironment.TypeConfigurator.use(TransportFactory)
@CanIgnoreReturnValue public ServerEnvironment.TypeConfigurator use(StorageFactory factory)
StorageFactory
for the selected environment.@CanIgnoreReturnValue public ServerEnvironment.TypeConfigurator useStorageFactory(ServerEnvironment.Fn<StorageFactory> fn)
StorageFactory
obtained from the passed function.
In case the StorageFactory
is never requested for the current server
environment type, the passed function will be not invoked.
fn
- the function to provide the StorageFactory
in response to
the currently configured server environment typeServerEnvironment.TypeConfigurator.use(StorageFactory)