Interface GrpcSessionConfiguration
-
- All Superinterfaces:
Comparable<com.tangosol.net.SessionConfiguration>,com.tangosol.net.SessionConfiguration
- All Known Implementing Classes:
GrpcSessionConfiguration.DefaultConfiguration
@Deprecated(since="22.06.2") public interface GrpcSessionConfiguration extends com.tangosol.net.SessionConfiguration
Deprecated.Configure a grpc-remote-cache-scheme in the cache configuration file.ASessionConfigurationthat configures a gRPC client session.- Since:
- 20.12
- Author:
- Jonathan Knight 2020.11.04
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classGrpcSessionConfiguration.BuilderDeprecated.A builder that buildsGrpcSessionConfigurationinstances.static classGrpcSessionConfiguration.DefaultConfigurationDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_HOSTDeprecated.The default host name to use for the default channel.static intDEFAULT_PRIORITYDeprecated.The default priority for gRPC Sessions.static StringPROP_DEFAULT_SESSION_ENABLEDDeprecated.The system property that sets whether the default gRPC session is enabled.static StringPROP_SESSION_ENABLEDDeprecated.The system property that sets whether a session is enabled.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static GrpcSessionConfiguration.Builderbuilder()Deprecated.Create aGrpcSessionConfigurationbuilder for the default gRPC session.static GrpcSessionConfiguration.Builderbuilder(io.grpc.Channel channel)Deprecated.Create aGrpcSessionConfigurationbuilder.static GrpcSessionConfiguration.Builderbuilder(String sChannelName)Deprecated.Create aGrpcSessionConfigurationbuilder.static GrpcSessionConfiguration.Builderbuilder(String channelName, String sFallbackName)Deprecated.Create aGrpcSessionConfigurationbuilder.default booleanenableTracing()Deprecated.Returnstrueif client gRPC tracing should be enabled.io.grpc.ChannelgetChannel()Deprecated.Returns the gRPCChannelto use.default Optional<String>getFormat()Deprecated.Returns the name of the serialization format to use to serialize gRPC message payloads.default StringgetScopeName()Deprecated.default Optional<com.tangosol.io.Serializer>getSerializer()Deprecated.Returns theSerializerto use to serialize gRPC message payloads.
-
-
-
Field Detail
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
Deprecated.The default priority for gRPC Sessions. This is lower than the default so that by default gRPC client sessions start after normal sessions as there is more likely to be a dependency between gRPC and CCF sessions.- See Also:
- Constant Field Values
-
DEFAULT_HOST
static final String DEFAULT_HOST
Deprecated.The default host name to use for the default channel.- See Also:
- Constant Field Values
-
PROP_SESSION_ENABLED
static final String PROP_SESSION_ENABLED
Deprecated.The system property that sets whether a session is enabled.- See Also:
- Constant Field Values
-
PROP_DEFAULT_SESSION_ENABLED
static final String PROP_DEFAULT_SESSION_ENABLED
Deprecated.The system property that sets whether the default gRPC session is enabled.
-
-
Method Detail
-
builder
static GrpcSessionConfiguration.Builder builder(io.grpc.Channel channel)
Deprecated.Create aGrpcSessionConfigurationbuilder.Passing in a
nullchannel will create a session using a default channel configuration oflocalhost:1408. This can be overridden using theGrpcChannelDependencies.PROP_HOSTand/or theGrpcChannelDependencies.PROP_PORTsystem properties. which will create a channel using theManagedChannelBuilder.forAddress(String, int)method. Alternatively theGrpcChannelDependencies.PROP_TARGETsystem property can be set to create the channel using theManagedChannelBuilder.forTarget(String)method.- Parameters:
channel- theChannelto use- Returns:
- a
GrpcSessionConfigurationbuilder
-
builder
static GrpcSessionConfiguration.Builder builder()
Deprecated.Create aGrpcSessionConfigurationbuilder for the default gRPC session.If
coherence.grpc.channels.default.targetis set this value will be used to create a channel usingManagedChannelBuilder.forTarget(String)creating a plain text channel.If
coherence.grpc.channels.default.hostis set this value will be used to create a channel usingManagedChannelBuilder.forAddress(String, int)creating a plain text channel. The port will be taken from thecoherence.grpc.channels.default.portproperty or default to1408.The
GrpcSessionConfiguration.Builder.build()method will throw anIllegalStateExceptionif no channel properties exist for the channel name- Returns:
- a
GrpcSessionConfigurationbuilder
-
builder
static GrpcSessionConfiguration.Builder builder(String sChannelName)
Deprecated.Create aGrpcSessionConfigurationbuilder.The
sChannelNameparameter will be used to lookup channel configuration properties. Ifcoherence.grpc.channels.[sChanneName].targetis set this value will be used to create a channel usingManagedChannelBuilder.forTarget(String)creating a plain text channel.If
coherence.grpc.channels.[sChanneName].hostis set this value will be used to create a channel usingManagedChannelBuilder.forAddress(String, int)creating a plain text channel. The port will be taken from thecoherence.grpc.channels.[sChanneName].portproperty or default to1408.The
GrpcSessionConfiguration.Builder.build()method will throw anIllegalStateExceptionif no channel properties exist for the channel name- Parameters:
sChannelName- the name of the channel to use to lookup channel properties- Returns:
- a
GrpcSessionConfigurationbuilder
-
builder
static GrpcSessionConfiguration.Builder builder(String channelName, String sFallbackName)
Deprecated.Create aGrpcSessionConfigurationbuilder.The
channelNameparameter will be used to lookup channel configuration properties. Ifcoherence.grpc.channels.[sChannelName].targetis set this value will be used to create a channel usingManagedChannelBuilder.forTarget(String)creating a plain text channel.If
coherence.grpc.channels.[sChanneName].hostis set this value will be used to create a channel usingManagedChannelBuilder.forAddress(String, int)creating a plain text channel. The port will be taken from thecoherence.grpc.channels.[sChanneName].portproperty or default to1408.If no properties exist for the
channelNamethesFallbackNameparameter will be used to lookup channel configuration properties.The
GrpcSessionConfiguration.Builder.build()method will throw anIllegalStateExceptionif no channel properties exist for the either the channel name or fallback name.- Parameters:
channelName- the name of the channel to use to lookup channel propertiessFallbackName- the name of the channel to use to lookup channel configuration if no properties exist for the primarychannelName- Returns:
- a
GrpcSessionConfigurationbuilder
-
getScopeName
default String getScopeName()
Deprecated.- Specified by:
getScopeNamein interfacecom.tangosol.net.SessionConfiguration
-
getChannel
io.grpc.Channel getChannel()
Deprecated.Returns the gRPCChannelto use.- Returns:
- the gRPC
Channelto use
-
getSerializer
default Optional<com.tangosol.io.Serializer> getSerializer()
Deprecated.Returns theSerializerto use to serialize gRPC message payloads.If an empty
Optionalis returned the serializer will be the default Coherence serializer, either POF if it has been enabled with thecoherence.pof.enabledsystem property, otherwise Java.- Returns:
- the
Serializerto use
-
getFormat
default Optional<String> getFormat()
Deprecated.Returns the name of the serialization format to use to serialize gRPC message payloads.If an empty
Optionalis returned the serializer format will be taken from the default Coherence serializer, either "pof" if it has been enabled with thecoherence.pof.enabledsystem property, otherwise "java".- Returns:
- the name of the serialization format
-
enableTracing
default boolean enableTracing()
Deprecated.Returnstrueif client gRPC tracing should be enabled.- Returns:
trueif client gRPC tracing should be enabled
-
-