Class GrpcSessionConfigurationBean
- java.lang.Object
-
- com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
-
- com.oracle.coherence.spring.configuration.session.GrpcSessionConfigurationBean
-
- All Implemented Interfaces:
SessionConfigurationProvider
public class GrpcSessionConfigurationBean extends AbstractSessionConfigurationBean
AGrpcSessionConfigurationbean that will be created for each named session in the application configuration properties.This configuration bean specifically produces
GrpcSessionConfigurationbeans only if the configuration has achannelNameproperty. ThechannelNamerefers to the name of aChannelbean.Sessions are configured with the
coherence.sessionprefix, for examplecoherence.session.fooconfigures a session named foo.The session name
defaultis a special case that configures the default session namedCoherence.DEFAULT_NAME.- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
GrpcSessionConfiguration
-
-
Field Summary
-
Fields inherited from class com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
DEFAULT_SESSION_NAME
-
-
Constructor Summary
Constructors Constructor Description GrpcSessionConfigurationBean()GrpcSessionConfigurationBean(String name, ConfigurableApplicationContext ctx)Create a namedGrpcSessionConfigurationBean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<com.tangosol.net.SessionConfiguration>getConfiguration()Returns the optionalSessionConfigurationthat is provider provides.voidsetChannelName(String channelName)Set the name of the gRPCChannelbean.voidsetSerializer(String serializer)Set the name of theSerializer.voidsetTracing(boolean enabled)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(String name, ConfigurableApplicationContext ctx)
Create a namedGrpcSessionConfigurationBean.- Parameters:
name- the name for the sessionctx- the Spring application context
-
GrpcSessionConfigurationBean
public GrpcSessionConfigurationBean()
-
-
Method Detail
-
getConfiguration
public Optional<com.tangosol.net.SessionConfiguration> getConfiguration()
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
public void setChannelName(String channelName)
Set the name of the gRPCChannelbean.- Parameters:
channelName- the name of the gRPCChannelbean
-
setSerializer
public void setSerializer(String serializer)
Set the name of theSerializer.- Parameters:
serializer- the name of theSerializer
-
setTracing
public void setTracing(boolean enabled)
Set whether distributed tracing should be enabled.- Parameters:
enabled-trueto enable distributed tracing
-
-