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 type
T - the transient context type
D - the deployment type
S - the session type
All Implemented Interfaces:
AutoCloseable, User<C,T,D,S>

public class CompositeUser<C,T,D,S> extends Object implements User<C,T,D,S>
A user implementation composed of a context entry and user sessions.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Description copied from interface: User
      Returns the unique identifier for this user.
      Specified by:
      getId in interface User<C,T,D,S>
      Returns:
      a unique identifier
    • getPersistentContext

      public C getPersistentContext()
      Description copied from interface: User
      Returns the persistent context of this user.
      Specified by:
      getPersistentContext in interface User<C,T,D,S>
      Returns:
      the persistent user context.
    • getSessions

      public UserSessions<D,S> getSessions()
      Description copied from interface: User
      Returns the sessions for this user.
      Specified by:
      getSessions in interface User<C,T,D,S>
      Returns:
      the sessions for this user.
    • isValid

      public boolean isValid()
      Description copied from interface: User
      Returns true unless this user was invalidated.
      Specified by:
      isValid in interface User<C,T,D,S>
      Returns:
      false if this user was invalidated, true otherwise.
    • invalidate

      public void invalidate()
      Description copied from interface: User
      Invalidates this user and any associated sessions.
      Specified by:
      invalidate in interface User<C,T,D,S>
    • getTransientContext

      public T getTransientContext()
      Description copied from interface: User
      Returns the transient context of this user.
      Specified by:
      getTransientContext in interface User<C,T,D,S>
      Returns:
      the transient user context