Class DefaultImmutableSessionMetaData

java.lang.Object
org.wildfly.clustering.session.cache.metadata.AbstractImmutableSessionMetaData
org.wildfly.clustering.session.cache.metadata.coarse.DefaultImmutableSessionMetaData
All Implemented Interfaces:
Expiration, ExpirationMetaData, ImmutableSessionMetaData
Direct Known Subclasses:
DefaultSessionMetaData

public class DefaultImmutableSessionMetaData extends AbstractImmutableSessionMetaData
Default immutable session metadata implementation that delegates to a cache entry.
Author:
Paul Ferraro
  • Constructor Details

    • DefaultImmutableSessionMetaData

      public DefaultImmutableSessionMetaData(ImmutableSessionMetaDataEntry entry)
      Immutable session metadata referencing the specified entry.
      Parameters:
      entry - a session metadata entry
  • Method Details

    • getCreationTime

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

      public Optional<Instant> getLastAccessStartTime()
      Description copied from interface: ImmutableSessionMetaData
      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

      public Optional<Instant> getLastAccessEndTime()
      Description copied from interface: ImmutableSessionMetaData
      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.
    • getMaxIdle

      public Optional<Duration> getMaxIdle()
      Description copied from interface: Expiration
      When present, defines the maximum duration of time since last access, after which managed state will expire.
      Returns:
      the optional duration of time since last access after which managed state will expire