Class MutableUserSessions<D,S>
java.lang.Object
org.wildfly.clustering.session.cache.user.MutableUserSessions<D,S>
- Type Parameters:
D- the deployment typeS- the session type
- All Implemented Interfaces:
UserSessions<D,S>
A mutable user sessions implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddSession(D deployment, S session) Adds the specified deployment and session identifiers to the set of deployments for which the associated user is authenticated.Returns the set of deployments for which the associated user is authenticated.getSession(D deployment) Returns the corresponding session identifier for the specified deployment.removeSession(D deployment) Removes the specified deployment from the set of deployments for which the associated user is authenticated.
-
Constructor Details
-
MutableUserSessions
-
-
Method Details
-
getDeployments
Description copied from interface:UserSessionsReturns the set of deployments for which the associated user is authenticated.- Specified by:
getDeploymentsin interfaceUserSessions<D,S> - Returns:
- a set of deployment identifiers.
-
getSession
Description copied from interface:UserSessionsReturns the corresponding session identifier for the specified deployment.- Specified by:
getSessionin interfaceUserSessions<D,S> - Parameters:
deployment- a deployment identifier- Returns:
- the session identifier of the user for the specified deployment, or null, if no session exists for the associated user.
-
removeSession
Description copied from interface:UserSessionsRemoves the specified deployment from the set of deployments for which the associated user is authenticated.- Specified by:
removeSessionin interfaceUserSessions<D,S> - Parameters:
deployment- a deployment identifier- Returns:
- the session identifier of the user for the specified deployment, or null, if no session exists for the associated user.
-
addSession
Description copied from interface:UserSessionsAdds the specified deployment and session identifiers to the set of deployments for which the associated user is authenticated.- Specified by:
addSessionin interfaceUserSessions<D,S> - Parameters:
deployment- a deployment identifiersession- a session identifier- Returns:
- true, if the session was added, false it already exists
-