Package io.micronaut.coherence
Class SessionConfigurationBean
- java.lang.Object
-
- io.micronaut.coherence.AbstractSessionConfigurationBean
-
- io.micronaut.coherence.SessionConfigurationBean
-
- All Implemented Interfaces:
SessionConfigurationProvider
@EachProperty(value="coherence.sessions", primary="default") 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:
- 1.0
- Author:
- Jonathan Knight
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SessionConfigurationBean(java.lang.String name)
Create a namedSessionConfigurationBean
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConfig()
Get the Coherence cache configuration URI.java.util.Optional<com.tangosol.net.SessionConfiguration>
getConfiguration()
Returns the optionalSessionConfiguration
that is provider provides.void
setConfig(java.lang.String configUri)
Set the Coherence cache configuration URI.-
Methods inherited from class io.micronaut.coherence.AbstractSessionConfigurationBean
getName, getPriority, getScopeName, getType, setName, setPriority, setScopeName, setType, setType
-
-
-
-
Constructor Detail
-
SessionConfigurationBean
protected SessionConfigurationBean(@Parameter java.lang.String name)
Create a namedSessionConfigurationBean
.- Parameters:
name
- the name for the session
-
-
Method Detail
-
getConfiguration
public java.util.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 java.lang.String getConfig()
Get the Coherence cache configuration URI.- Returns:
- the Coherence cache configuration URI
-
setConfig
public void setConfig(java.lang.String configUri)
Set the Coherence cache configuration URI.- Parameters:
configUri
- the Coherence cache configuration URI
-
-