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
A
SessionConfiguration
bean that will be created for
each named session in the application configuration properties.
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:
- 1.0
- Author:
- Jonathan Knight
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the Coherence cache configuration URI.Optional<com.tangosol.net.SessionConfiguration>
Returns the optionalSessionConfiguration
that is provider provides.void
Set the Coherence cache configuration URI.Methods inherited from class io.micronaut.coherence.AbstractSessionConfigurationBean
getName, getPriority, getScopeName, getType, setName, setPriority, setScopeName, setType, setType
-
Constructor Details
-
SessionConfigurationBean
Create a namedSessionConfigurationBean
.- Parameters:
name
- the name for the session
-
-
Method Details
-
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
Get the Coherence cache configuration URI.- Returns:
- the Coherence cache configuration URI
-
setConfig
Set the Coherence cache configuration URI.- Parameters:
configUri
- the Coherence cache configuration URI
-