Package org.wildfly.clustering.session
Interface SessionManager<C>
-
Method Summary
Modifier and TypeMethodDescriptioncreateSession(String id) Creates a session using the specified identifier.Creates a session using the specified identifier.default ImmutableSessionReturns a read-only view of the session with the specified identifier.Returns a read-only view of the session with the specified identifier.findSession(String id) Returns the session with the specified identifier, or null if none exists.Returns the session with the specified identifier, or null if none exists.Returns a detached session with the specified identifier.Returns statistics for this session manager.Methods inherited from interface org.wildfly.clustering.server.manager.Manager
getBatchFactoryMethods inherited from interface org.wildfly.clustering.server.manager.ManagerConfiguration
getIdentifierFactory
-
Method Details
-
createSession
Creates a session using the specified identifier. Sessions returned by this method must be closed viaSession.close(). This method is intended to be invoked within the context of a batch.- Parameters:
id- a session identifier- Returns:
- a new web session, or null if a session with the specified identifier already exists.
-
createSessionAsync
Creates a session using the specified identifier. Sessions returned by this method must be closed viaSession.close(). This method is intended to be invoked within the context of a batch.- Parameters:
id- a session identifier- Returns:
- a new web session, or null if a session with the specified identifier already exists.
-
findSession
Returns the session with the specified identifier, or null if none exists. Sessions returned by this method must be closed viaSession.close(). This method is intended to be invoked within the context of a batch.- Parameters:
id- a session identifier- Returns:
- an existing web session, or null if none exists
-
findSessionAsync
Returns the session with the specified identifier, or null if none exists. Sessions returned by this method must be closed viaSession.close(). This method is intended to be invoked within the context of a batch.- Parameters:
id- a session identifier- Returns:
- an existing web session, or null if none exists
-
findImmutableSession
Returns a read-only view of the session with the specified identifier. This method is intended to be invoked within the context of a batch- Parameters:
id- a unique session identifier- Returns:
- a read-only session or null if none exists
-
findImmutableSessionAsync
Returns a read-only view of the session with the specified identifier. This method is intended to be invoked within the context of a batch- Parameters:
id- a unique session identifier- Returns:
- a read-only session or null if none exists
-
getDetachedSession
-
getStatistics
SessionStatistics getStatistics()Returns statistics for this session manager.- Returns:
- an object from which statistics can be obtained.
-