Interface ImmutableSessionAccessMetaData

All Known Subinterfaces:
SessionAccessMetaData, SessionAccessMetaDataEntry
All Known Implementing Classes:
DefaultSessionAccessMetaDataEntry, MutableSessionAccessMetaData

public interface ImmutableSessionAccessMetaData
Immutable view of the volatile aspects of a session's meta-data.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the duration of time between the start and of the last access.
    Returns the duration of time between session creation and the start of the last access.
    default boolean
    Returns true, if this is a newly created entry, false otherwise.
  • Method Details

    • isNew

      default boolean isNew()
      Returns true, if this is a newly created entry, false otherwise.
      Returns:
      true, if this is a newly created entry, false otherwise.
    • getSinceCreationDuration

      Duration getSinceCreationDuration()
      Returns the duration of time between session creation and the start of the last access.
      Returns:
      the duration of time between session creation and the start of the last access.
    • getLastAccessDuration

      Duration getLastAccessDuration()
      Returns the duration of time between the start and of the last access.
      Returns:
      the duration of time between the start and of the last access.