Package io.micronaut.coherence
Class AbstractSessionConfigurationBean
- java.lang.Object
-
- io.micronaut.coherence.AbstractSessionConfigurationBean
-
- All Implemented Interfaces:
SessionConfigurationProvider
- Direct Known Subclasses:
SessionConfigurationBean
public abstract class AbstractSessionConfigurationBean extends java.lang.Object implements SessionConfigurationProvider
A baseSessionConfigurationProvider
.- Since:
- 1.0
- Author:
- Jonathan Knight
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSessionConfigurationBean(java.lang.String name)
Create a namedAbstractSessionConfigurationBean
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Return the name of this configuration.int
getPriority()
Returns the priority of this configuration.java.lang.String
getScopeName()
Return the scope name for this configuration.SessionType
getType()
Returns the type of this configuration.void
setName(java.lang.String name)
Set the name of this configuration.void
setPriority(int priority)
Set the priority for this configuration.void
setScopeName(java.lang.String scopeName)
Set the scope name for this configuration.void
setType(SessionType type)
Set the priority of this configuration.void
setType(java.lang.String type)
Set the priority of this configuration.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micronaut.coherence.SessionConfigurationProvider
getConfiguration
-
-
-
-
Constructor Detail
-
AbstractSessionConfigurationBean
protected AbstractSessionConfigurationBean(@Parameter java.lang.String name)
Create a namedAbstractSessionConfigurationBean
.- Parameters:
name
- the name for the session
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
Set the name of this configuration.- Parameters:
name
- the name of this configuration
-
getName
public java.lang.String getName()
Return the name of this configuration.- Returns:
- the name of this configuration
-
setScopeName
public void setScopeName(java.lang.String scopeName)
Set the scope name for this configuration.- Parameters:
scopeName
- the scope name for this configuration
-
getScopeName
public java.lang.String getScopeName()
Return the scope name for this configuration.- Returns:
- the scope name for this configuration
-
setPriority
public void setPriority(int priority)
Set the priority for this configuration.Sessions
are started lowest priority first and closed in reverse order.- Parameters:
priority
- the priority for this configuration- See Also:
SessionConfiguration.getPriority()
-
getPriority
public int getPriority()
Returns the priority of this configuration.- Returns:
- the priority of this configuration
-
setType
public void setType(java.lang.String type)
Set the priority of this configuration.- Parameters:
type
- the type of this configuration
-
setType
public void setType(SessionType type)
Set the priority of this configuration.- Parameters:
type
- the type of this configuration
-
getType
public SessionType getType()
Returns the type of this configuration.- Returns:
- the type of this configuration
-
-