Interface User<C,T,D,S>

Type Parameters:
C - the user context type
T - the transient context type
D - the deployment identifier type
S - the session identifier type

public interface User<C,T,D,S>
Represents a user, associated with one or more sessions.
Author:
Paul Ferraro
  • Method Details

    • getId

      String getId()
      Returns the unique identifier for this user.
      Returns:
      a unique identifier
    • getPersistentContext

      C getPersistentContext()
      Returns the persistent context of this user.
      Returns:
      the persistent user context.
    • getTransientContext

      T getTransientContext()
      Returns the transient context of this user.
      Returns:
      the transient user context
    • getSessions

      UserSessions<D,S> getSessions()
      Returns the sessions for this user.
      Returns:
    • invalidate

      void invalidate()
      Invalidates this user and any associated sessions.