Class DecoratedUser<C,T,D,S>

java.lang.Object
org.wildfly.clustering.session.cache.user.DecoratedUser<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, Supplier<User<C,T,D,S>>, User<C,T,D,S>
Direct Known Subclasses:
CachedUser

public class DecoratedUser<C,T,D,S> extends Object implements User<C,T,D,S>, Supplier<User<C,T,D,S>>
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • get

      public User<C,T,D,S> get()
      Specified by:
      get in interface Supplier<C>
    • 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.
    • 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
    • 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>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface User<C,T,D,S>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object