Class CompositeUser<C,T,D,S>
java.lang.Object
org.wildfly.clustering.session.cache.user.CompositeUser<C,T,D,S>
- Type Parameters:
C- the persistent context typeT- the transient context typeD- the deployment typeS- the session type
- All Implemented Interfaces:
AutoCloseable, User<C,T, D, S>
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeUser(String id, Map.Entry<C, T> contextEntry, UserSessions<D, S> sessions, CacheEntryRemover<String> remover) A user composed of a context entry and user sessions. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the unique identifier for this user.Returns the persistent context of this user.Returns the sessions for this user.Returns the transient context of this user.voidInvalidates this user and any associated sessions.booleanisValid()Returns true unless this user was invalidated.
-
Constructor Details
-
CompositeUser
public CompositeUser(String id, Map.Entry<C, T> contextEntry, UserSessions<D, S> sessions, CacheEntryRemover<String> remover) A user composed of a context entry and user sessions.- Parameters:
id- the identifier of the usercontextEntry- a content entrysessions- the session associated with the userremover- a remover for the user
-
-
Method Details