Package io.deephaven.client.impl
Class ClientChannelFactoryDefaulter
java.lang.Object
io.deephaven.client.impl.ClientChannelFactoryDefaulter
- All Implemented Interfaces:
ClientChannelFactory
@Immutable
public abstract class ClientChannelFactoryDefaulter
extends Object
implements ClientChannelFactory
A client channel factory that may update
ClientConfig
values before handing off to a delegate()
.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
final io.grpc.ManagedChannel
create
(ClientConfig config) Creates a managed channel.delegate()
The delegated client channel factory.ssl()
The ssl config.The user-agent.
-
Constructor Details
-
ClientChannelFactoryDefaulter
public ClientChannelFactoryDefaulter()
-
-
Method Details
-
builder
-
delegate
The delegated client channel factory. By default, isClientChannelFactory.defaultInstance()
. -
ssl
The ssl config. This will setssl
for theconfig
increate(ClientConfig)
if it has not already been set and thetarget
issecure
. -
userAgent
The user-agent. This will setClientConfig.userAgent()
for theconfig
increate(ClientConfig)
if it has not already been set. -
create
Creates a managed channel. Will updateconfig
with the defaults as specified byssl()
anduserAgent()
before delegating todelegate()
.- Specified by:
create
in interfaceClientChannelFactory
-