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 base
SessionConfigurationProvider
.- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
-
SessionConfiguration
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create aAbstractSessionConfigurationBean
.protected
Create a namedAbstractSessionConfigurationBean
. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Return the name of this configuration.int
Returns the priority of this configuration.Return the scope name for this configuration.getType()
Returns the type of the session.void
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 Details
-
DEFAULT_SESSION_NAME
Name of the default session.- See Also:
-
-
Constructor Details
-
AbstractSessionConfigurationBean
protected AbstractSessionConfigurationBean()Create aAbstractSessionConfigurationBean
. It will use te default session by default. -
AbstractSessionConfigurationBean
Create a namedAbstractSessionConfigurationBean
.- Parameters:
name
- must not be empty
-
-
Method Details
-
setName
Set the name of this configuration.- Parameters:
name
- the name of this configuration
-
getName
Return the name of this configuration.- Returns:
- the name of this configuration
-
setScopeName
Set the scope name for this configuration.- Parameters:
scopeName
- the scope name for this configuration
-
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
Set the priority of this configuration.- Parameters:
sessionType
- the type of thisSession
-
getType
Returns the type of the session.- Returns:
- the type of this configuration
-