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 StringDEFAULT_SESSION_NAMEName of the default session.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSessionConfigurationBean()Create aAbstractSessionConfigurationBean.protectedAbstractSessionConfigurationBean(String name)Create a namedAbstractSessionConfigurationBean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Return the name of this configuration.intgetPriority()Returns the priority of this configuration.StringgetScopeName()Return the scope name for this configuration.SessionTypegetType()Returns the type of the session.voidsetName(String name)Set the name of this configuration.voidsetPriority(int priority)Set the priority for this configuration.voidsetScopeName(String scopeName)Set the scope name for this configuration.voidsetType(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.Sessionsare 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
-
-