Interface ImmutableSessionMetaDataEntry

All Known Subinterfaces:
ContextualSessionMetaDataEntry<C>, SessionMetaDataEntry
All Known Implementing Classes:
AbstractSessionMetaDataEntry, DefaultSessionMetaDataEntry, MutableSessionMetaDataEntry

public interface ImmutableSessionMetaDataEntry
An immutable view of the session metadata entry.
Author:
Paul Ferraro
  • Method Details

    • isNew

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

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

      Supplier<Instant> getLastAccessStartTime()
      Returns the last access start time, as an offset of the creation time.
      Returns:
      the last access start time, as an offset of the creation time.
    • getLastAccessEndTime

      Supplier<Instant> getLastAccessEndTime()
      Returns the last access end time, as an offset of the last access start time.
      Returns:
      the last access end time, as an offset of the last access start time.
    • getMaxIdle

      Duration getMaxIdle()
      Returns the duration of time since last access that this session should expire. An immortal session will return Duration.ZERO.
      Returns:
      the duration of time since last access that this session should expire.