Interface ImmutableSessionMetaData

All Superinterfaces:
Expiration, ExpirationMetaData
All Known Subinterfaces:
InvalidatableSessionMetaData, SessionMetaData
All Known Implementing Classes:
AbstractImmutableSessionMetaData, CompositeImmutableSessionMetaData, CompositeSessionMetaData, DefaultImmutableSessionMetaData, DefaultSessionMetaData, DetachedSessionMetaData, SimpleImmutableSessionMetaData

public interface ImmutableSessionMetaData extends ExpirationMetaData
Abstraction for immutable meta information about a session.
Author:
Paul Ferraro
  • Method Details

    • getCreationTime

      Instant getCreationTime()
      Returns the time this session was created.
      Returns:
      the time this session was created
    • getLastAccessStartTime

      Optional<Instant> getLastAccessStartTime()
      If present, returns the start time of the last request to access this session.
      Returns:
      the start time of the last request to access this session, or empty if session was created during the current request.
    • getLastAccessEndTime

      Optional<Instant> getLastAccessEndTime()
      If present, returns the end time of the last request to access this session.
      Returns:
      the end time of the last request to access this session, or empty if session was created during the current request.
    • getLastAccessTime

      default Optional<Instant> getLastAccessTime()
      Description copied from interface: ExpirationMetaData
      When present, returns the time this object was last accessed.
      Specified by:
      getLastAccessTime in interface ExpirationMetaData
      Returns:
      the time this object was last accessed, or empty not previously accessed.