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>
A user implementation composed of a context entry and user sessions.
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeUser(String id, Map.Entry<C, T> contextEntry, UserSessions<D, S> sessions, CacheEntryRemover<String> remover) -
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)
-
-
Method Details
-
getId
Description copied from interface:UserReturns the unique identifier for this user. -
getPersistentContext
Description copied from interface:UserReturns the persistent context of this user. -
getSessions
Description copied from interface:UserReturns the sessions for this user. -
isValid
public boolean isValid()Description copied from interface:UserReturns true unless this user was invalidated. -
invalidate
public void invalidate()Description copied from interface:UserInvalidates this user and any associated sessions. -
getTransientContext
Description copied from interface:UserReturns the transient context of this user.
-