public class InProcessChannelFactory extends AbstractChannelFactory<InProcessChannelBuilder>
GrpcChannelFactory
s. This class
utilizes connection pooling and thus needs to be closed
after usage.channelConfigurers, globalClientInterceptorRegistry
Constructor and Description |
---|
InProcessChannelFactory(GrpcChannelsProperties properties,
GlobalClientInterceptorRegistry globalClientInterceptorRegistry)
Creates a new InProcessChannelFactory with the given properties.
|
InProcessChannelFactory(GrpcChannelsProperties properties,
GlobalClientInterceptorRegistry globalClientInterceptorRegistry,
List<GrpcChannelConfigurer> channelConfigurers)
Creates a new InProcessChannelFactory with the given properties.
|
Modifier and Type | Method and Description |
---|---|
protected InProcessChannelBuilder |
newChannelBuilder(String name)
Creates a new
ManagedChannelBuilder for the given client name. |
close, configure, configureCompression, configureKeepAlive, configureLimits, configureSecurity, createChannel, createChannel, getPropertiesFor, isNonNullAndNonBlank, newManagedChannel, toCheckedFile
public InProcessChannelFactory(GrpcChannelsProperties properties, GlobalClientInterceptorRegistry globalClientInterceptorRegistry)
properties
- The properties for the channels to create.globalClientInterceptorRegistry
- The interceptor registry to use.public InProcessChannelFactory(GrpcChannelsProperties properties, GlobalClientInterceptorRegistry globalClientInterceptorRegistry, List<GrpcChannelConfigurer> channelConfigurers)
properties
- The properties for the channels to create.globalClientInterceptorRegistry
- The interceptor registry to use.channelConfigurers
- The channel configurers to use. Can be empty.protected InProcessChannelBuilder newChannelBuilder(String name)
AbstractChannelFactory
ManagedChannelBuilder
for the given client name.newChannelBuilder
in class AbstractChannelFactory<InProcessChannelBuilder>
name
- The name to create the channel builder for.