Interface AbstractSessionManager.Configuration<CC,MV,AV,SC>
- Type Parameters:
CC- the deployment context typeMV- the session metadata value typeAV- the session attribute value typeSC- the session context type
- All Superinterfaces:
Expiration, ExpirationConfiguration<ImmutableSession>, ManagerConfiguration<String>, SessionManagerConfiguration<CC>
- Enclosing class:
AbstractSessionManager<CC,MV, AV, SC>
protected static interface AbstractSessionManager.Configuration<CC,MV,AV,SC>
extends SessionManagerConfiguration<CC>
Configuration of a session manager.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration associated with a cache.BiFunction<String, SC, Session<SC>> Returns a factory for creating a detached session.Returns a task to invoke on session close.Returns a factory for creating identifiers for use by this manager.Returns a task to invoke on session close.Returns a factory for creating a session.Methods inherited from interface Expiration
getMaxIdleMethods inherited from interface ExpirationConfiguration
getExpirationListenerMethods inherited from interface SessionManagerConfiguration
getContext
-
Method Details
-
getIdentifierFactory
IdentifierFactoryService<String> getIdentifierFactory()Description copied from interface:ManagerConfigurationReturns a factory for creating identifiers for use by this manager.- Specified by:
getIdentifierFactoryin interfaceManagerConfiguration<CC>- Returns:
- an identifier factory
-
getCacheConfiguration
CacheConfiguration getCacheConfiguration()Returns the configuration associated with a cache.- Returns:
- the configuration associated with a cache.
-
getSessionFactory
SessionFactory<CC,MV, getSessionFactory()AV, SC> Returns a factory for creating a session.- Returns:
- a factory for creating a session.
-
getDetachedSessionFactory
BiFunction<String, SC, Session<SC>> getDetachedSessionFactory()Returns a factory for creating a detached session.- Returns:
- a factory for creating a detached session.
-
getExpiredSessionHandler
Consumer<ImmutableSession> getExpiredSessionHandler()Returns a task to invoke on session close.- Returns:
- a task to invoke on session close.
-
getSessionCloseTask
Consumer<ImmutableSession> getSessionCloseTask()Returns a task to invoke on session close.- Returns:
- a task to invoke on session close.
-