public class InProcessChannelFactory extends AbstractChannelFactory<io.grpc.inprocess.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,
java.util.List<GrpcChannelConfigurer> channelConfigurers)
Creates a new InProcessChannelFactory with the given properties.
|
Modifier and Type | Method and Description |
---|---|
protected io.grpc.inprocess.InProcessChannelBuilder |
newChannelBuilder(java.lang.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, java.util.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 io.grpc.inprocess.InProcessChannelBuilder newChannelBuilder(java.lang.String name)
AbstractChannelFactory
ManagedChannelBuilder
for the given client name.newChannelBuilder
in class AbstractChannelFactory<io.grpc.inprocess.InProcessChannelBuilder>
name
- The name to create the channel builder for.