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.xml
A
GrpcSessionConfiguration 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 a channelName property. The
channelName refers to the name of a Channel bean.
Sessions are configured with the coherence.session prefix,
for example coherence.session.foo configures a session named
foo.
The session name default is a special case that configures
the default session named Coherence.DEFAULT_NAME.
- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
-
GrpcSessionConfigurationClientSessionConfigurationBean
-
Field Summary
Fields inherited from class com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
DEFAULT_SESSION_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Create a namedGrpcSessionConfigurationBean. -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.tangosol.net.SessionConfiguration>Deprecated, for removal: This API element is subject to removal in a future version.Returns the optionalSessionConfigurationthat is provider provides.voidsetChannelName(String channelName) Deprecated, for removal: This API element is subject to removal in a future version.Set the name of the gRPCChannelbean.voidsetSerializer(String serializer) Deprecated, for removal: This API element is subject to removal in a future version.Set the name of theSerializer.voidsetTracing(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 Details
-
GrpcSessionConfigurationBean
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 Details
-
getConfiguration
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SessionConfigurationProviderReturns the optionalSessionConfigurationthat is provider provides.- Returns:
- the optional
SessionConfigurationthat is provider provides or an emptyOptionalif this provider cannot provide a configuration
-
setChannelName
Deprecated, for removal: This API element is subject to removal in a future version.Set the name of the gRPCChannelbean.- Parameters:
channelName- the name of the gRPCChannelbean
-
setSerializer
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-trueto enable distributed tracing
-