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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final io.grpc.ManagedChannelcreate(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 setsslfor theconfigincreate(ClientConfig)if it has not already been set and thetargetissecure. -
userAgent
The user-agent. This will setClientConfig.userAgent()for theconfigincreate(ClientConfig)if it has not already been set. -
create
Creates a managed channel. Will updateconfigwith the defaults as specified byssl()anduserAgent()before delegating todelegate().- Specified by:
createin interfaceClientChannelFactory
-