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,
List<GrpcChannelConfigurer> channelConfigurers)
Creates a new InProcessChannelFactory with the given properties.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureSecurity(io.grpc.inprocess.InProcessChannelBuilder builder,
String name)
Configures the security options that should be used by the channel.
|
protected io.grpc.inprocess.InProcessChannelBuilder |
newChannelBuilder(String name)
Creates a new
ManagedChannelBuilder for the given client name. |
close, configure, configureCompression, configureKeepAlive, configureLimits, createChannel, createChannel, getConnectivityState, getDefaultScheme, getPropertiesFor, isNonNullAndNonBlank, newManagedChannel, watchConnectivityState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createChannel
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 io.grpc.inprocess.InProcessChannelBuilder newChannelBuilder(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.protected void configureSecurity(io.grpc.inprocess.InProcessChannelBuilder builder, String name)
AbstractChannelFactory
configureSecurity
in class AbstractChannelFactory<io.grpc.inprocess.InProcessChannelBuilder>
builder
- The channel builder to configure.name
- The name of the client to configure.