Class SessionConfigurationBean
- java.lang.Object
-
- com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
-
- com.oracle.coherence.spring.configuration.session.SessionConfigurationBean
-
- All Implemented Interfaces:
SessionConfigurationProvider
- Direct Known Subclasses:
ClientSessionConfigurationBean
,ServerSessionConfigurationBean
public class SessionConfigurationBean extends AbstractSessionConfigurationBean
ASessionConfiguration
bean that will be created for each named session in the application configuration properties.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
-
-
Field Summary
-
Fields inherited from class com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
DEFAULT_SESSION_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description SessionConfigurationBean()
protected
SessionConfigurationBean(String name)
Create a namedSessionConfigurationBean
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfig()
Get the Coherence cache configuration URI.Optional<com.tangosol.net.SessionConfiguration>
getConfiguration()
Returns the optionalSessionConfiguration
that is provider provides.void
setConfig(String configUri)
Set the Coherence cache configuration URI.-
Methods inherited from class com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
getName, getPriority, getScopeName, getType, setName, setPriority, setScopeName, setType
-
-
-
-
Constructor Detail
-
SessionConfigurationBean
protected SessionConfigurationBean(String name)
Create a namedSessionConfigurationBean
.- Parameters:
name
- the name for the session
-
SessionConfigurationBean
public SessionConfigurationBean()
-
-
Method Detail
-
getConfiguration
public Optional<com.tangosol.net.SessionConfiguration> getConfiguration()
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
-
getConfig
public String getConfig()
Get the Coherence cache configuration URI.- Returns:
- the Coherence cache configuration URI
-
setConfig
public void setConfig(String configUri)
Set the Coherence cache configuration URI.- Parameters:
configUri
- the Coherence cache configuration URI
-
-