java.lang.Object
org.wildfly.clustering.session.cache.user.CompositeUser<C,T,D,S>
- Type Parameters:
C - the persistent context type
T - the transient context type
D - the deployment type
S - the session type
- All Implemented Interfaces:
org.wildfly.clustering.session.user.User<C,T,D,S>
public class CompositeUser<C,T,D,S>
extends Object
implements org.wildfly.clustering.session.user.User<C,T,D,S>
A user implementation composed of a context entry and user sessions.
-
Constructor Summary
Constructors
-
Method Summary
org.wildfly.clustering.session.user.UserSessions<D,S>
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CompositeUser
public CompositeUser(String id,
Map.Entry<C,T> contextEntry,
org.wildfly.clustering.session.user.UserSessions<D,S> sessions,
org.wildfly.clustering.cache.Remover<String> remover)
-
Method Details
-
getId
- Specified by:
getId in interface org.wildfly.clustering.session.user.User<C,T,D,S>
-
getPersistentContext
public C getPersistentContext()
- Specified by:
getPersistentContext in interface org.wildfly.clustering.session.user.User<C,T,D,S>
-
getSessions
public org.wildfly.clustering.session.user.UserSessions<D,S> getSessions()
- Specified by:
getSessions in interface org.wildfly.clustering.session.user.User<C,T,D,S>
-
invalidate
public void invalidate()
- Specified by:
invalidate in interface org.wildfly.clustering.session.user.User<C,T,D,S>
-
getTransientContext
public T getTransientContext()
- Specified by:
getTransientContext in interface org.wildfly.clustering.session.user.User<C,T,D,S>