Class SimpleImmutableSessionMetaData

java.lang.Object
org.wildfly.clustering.session.cache.metadata.SimpleImmutableSessionMetaData
All Implemented Interfaces:
Expiration, ExpirationMetaData, ImmutableSessionMetaData

public class SimpleImmutableSessionMetaData extends Object implements ImmutableSessionMetaData
An immutable "snapshot" of a session's meta-data which can be accessed outside the scope of a transaction.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • isNew

      public boolean isNew()
      Description copied from interface: ImmutableSessionMetaData
      Indicates whether or not this session was created by the current thread.
      Specified by:
      isNew in interface ImmutableSessionMetaData
      Returns:
      true, if this session is new, false otherwise
    • getCreationTime

      public Instant getCreationTime()
      Description copied from interface: ImmutableSessionMetaData
      Returns the time this session was created.
      Specified by:
      getCreationTime in interface ImmutableSessionMetaData
      Returns:
      the time this session was created
    • getLastAccessStartTime

      public Instant getLastAccessStartTime()
      Description copied from interface: ImmutableSessionMetaData
      Returns the start time of the last request to access this session, or null if session was created during the current request.
      Specified by:
      getLastAccessStartTime in interface ImmutableSessionMetaData
      Returns:
      the start time of the last request to access this session, or null if session was created during the current request.
    • getLastAccessEndTime

      public Instant getLastAccessEndTime()
      Description copied from interface: ImmutableSessionMetaData
      Returns the end time of the last request to access this session, or null if session was created during the current request.
      Specified by:
      getLastAccessEndTime in interface ImmutableSessionMetaData
      Returns:
      the end time of the last request to access this session, or null if session was created during the current request.
    • getTimeout

      public Duration getTimeout()
      Description copied from interface: Expiration
      The duration of time, after which an idle object should expire.
      Specified by:
      getTimeout in interface Expiration
      Returns:
      the object timeout
    • toString

      public String toString()
      Overrides:
      toString in class Object