Class UserContextEntry<C,T>

java.lang.Object
org.wildfly.clustering.session.cache.user.UserContextEntry<C,T>
Type Parameters:
C - the persistent user context type
T - the transient user context type
All Implemented Interfaces:
UserContext<C,T>

public class UserContextEntry<C,T> extends Object implements UserContext<C,T>
Cache entry that stores persistent and transient user context.
Author:
Paul Ferraro
  • Constructor Details

    • UserContextEntry

      public UserContextEntry(C persistentContext)
      Creates a user context entry.
      Parameters:
      persistentContext - the persistent context of the associated user
  • Method Details

    • getPersistentContext

      public C getPersistentContext()
      Description copied from interface: UserContext
      Returns the persistent context of the associated user.
      Specified by:
      getPersistentContext in interface UserContext<C,T>
      Returns:
      the persistent context of the associated user.
    • getTransientContext

      public Supplied<T> getTransientContext()
      Description copied from interface: UserContext
      Returns the transient context of the associated user.
      Specified by:
      getTransientContext in interface UserContext<C,T>
      Returns:
      the transient context of the associated user.