Class GrpcSessionConfigurationBean
- java.lang.Object
-
- com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
-
- com.oracle.coherence.spring.configuration.session.GrpcSessionConfigurationBean
-
- All Implemented Interfaces:
SessionConfigurationProvider
@Deprecated(since="4.0.0", forRemoval=true) public class GrpcSessionConfigurationBean extends AbstractSessionConfigurationBean
Deprecated, for removal: This API element is subject to removal in a future version.As of 4.0 please configure the Grpc Client using the coherence-cache-config.xmlAGrpcSessionConfiguration
bean that will be created for each named session in the application configuration properties.This configuration bean specifically produces
GrpcSessionConfiguration
beans only if the configuration has achannelName
property. ThechannelName
refers to the name of aChannel
bean.Sessions are configured with the
coherence.session
prefix, for examplecoherence.session.foo
configures a session named foo.The session name
default
is a special case that configures the default session namedCoherence.DEFAULT_NAME
.- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
GrpcSessionConfiguration
,ClientSessionConfigurationBean
-
-
Field Summary
-
Fields inherited from class com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
DEFAULT_SESSION_NAME
-
-
Constructor Summary
Constructors Constructor Description GrpcSessionConfigurationBean()
Deprecated, for removal: This API element is subject to removal in a future version.GrpcSessionConfigurationBean(java.lang.String name, ConfigurableApplicationContext ctx)
Deprecated, for removal: This API element is subject to removal in a future version.Create a namedGrpcSessionConfigurationBean
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<com.tangosol.net.SessionConfiguration>
getConfiguration()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the optionalSessionConfiguration
that is provider provides.void
setChannelName(java.lang.String channelName)
Deprecated, for removal: This API element is subject to removal in a future version.Set the name of the gRPCChannel
bean.void
setSerializer(java.lang.String serializer)
Deprecated, for removal: This API element is subject to removal in a future version.Set the name of theSerializer
.void
setTracing(boolean enabled)
Deprecated, for removal: This API element is subject to removal in a future version.Set whether distributed tracing should be enabled.-
Methods inherited from class com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
getName, getPriority, getScopeName, getType, setName, setPriority, setScopeName, setType
-
-
-
-
Constructor Detail
-
GrpcSessionConfigurationBean
public GrpcSessionConfigurationBean(java.lang.String name, ConfigurableApplicationContext ctx)
Deprecated, for removal: This API element is subject to removal in a future version.Create a namedGrpcSessionConfigurationBean
.- Parameters:
name
- the name for the sessionctx
- the Spring application context
-
GrpcSessionConfigurationBean
public GrpcSessionConfigurationBean()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
getConfiguration
public java.util.Optional<com.tangosol.net.SessionConfiguration> getConfiguration()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SessionConfigurationProvider
Returns the optionalSessionConfiguration
that is provider provides.- Returns:
- the optional
SessionConfiguration
that is provider provides or an emptyOptional
if this provider cannot provide a configuration
-
setChannelName
public void setChannelName(java.lang.String channelName)
Deprecated, for removal: This API element is subject to removal in a future version.Set the name of the gRPCChannel
bean.- Parameters:
channelName
- the name of the gRPCChannel
bean
-
setSerializer
public void setSerializer(java.lang.String serializer)
Deprecated, for removal: This API element is subject to removal in a future version.Set the name of theSerializer
.- Parameters:
serializer
- the name of theSerializer
-
setTracing
public void setTracing(boolean enabled)
Deprecated, for removal: This API element is subject to removal in a future version.Set whether distributed tracing should be enabled.- Parameters:
enabled
-true
to enable distributed tracing
-
-