Class AbstractSessionConfigurationBean
- java.lang.Object
-
- com.oracle.coherence.spring.configuration.session.AbstractSessionConfigurationBean
-
- All Implemented Interfaces:
SessionConfigurationProvider
- Direct Known Subclasses:
GrpcSessionConfigurationBean
,SessionConfigurationBean
public abstract class AbstractSessionConfigurationBean extends Object implements SessionConfigurationProvider
A baseSessionConfigurationProvider
.- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
SessionConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SESSION_NAME
Name of the default session.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSessionConfigurationBean()
Create aAbstractSessionConfigurationBean
.protected
AbstractSessionConfigurationBean(String name)
Create a namedAbstractSessionConfigurationBean
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Return the name of this configuration.int
getPriority()
Returns the priority of this configuration.String
getScopeName()
Return the scope name for this configuration.SessionType
getType()
Returns the type of the session.void
setName(String name)
Set the name of this configuration.void
setPriority(int priority)
Set the priority for this configuration.void
setScopeName(String scopeName)
Set the scope name for this configuration.void
setType(SessionType sessionType)
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 com.oracle.coherence.spring.configuration.session.SessionConfigurationProvider
getConfiguration
-
-
-
-
Field Detail
-
DEFAULT_SESSION_NAME
public static final String DEFAULT_SESSION_NAME
Name of the default session.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractSessionConfigurationBean
protected AbstractSessionConfigurationBean()
Create aAbstractSessionConfigurationBean
. It will use te default session by default.
-
AbstractSessionConfigurationBean
protected AbstractSessionConfigurationBean(String name)
Create a namedAbstractSessionConfigurationBean
.- Parameters:
name
- must not be empty
-
-
Method Detail
-
setName
public void setName(String name)
Set the name of this configuration.- Parameters:
name
- the name of this configuration
-
getName
public String getName()
Return the name of this configuration.- Returns:
- the name of this configuration
-
setScopeName
public void setScopeName(String scopeName)
Set the scope name for this configuration.- Parameters:
scopeName
- the scope name for this configuration
-
getScopeName
public 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(SessionType sessionType)
Set the priority of this configuration.- Parameters:
sessionType
- the type of thisSession
-
getType
public SessionType getType()
Returns the type of the session.- Returns:
- the type of this configuration
-
-