Interface SessionMetaDataEntry

All Superinterfaces:
org.wildfly.clustering.server.expiration.Expiration, ImmutableSessionMetaDataEntry
All Known Subinterfaces:
ContextualSessionMetaDataEntry<C>
All Known Implementing Classes:
DefaultSessionMetaDataEntry, MutableSessionMetaDataEntry

public interface SessionMetaDataEntry extends ImmutableSessionMetaDataEntry
Encapsulates the immutable cache entry properties storing session metadata.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    org.wildfly.clustering.server.offset.Value<Instant>
    Returns the last access end time, as an offset of the last access start time.
    org.wildfly.clustering.server.offset.Value<Instant>
    Returns the last access start time, as an offset of the creation time.
    void
    Sets the session timeout.

    Methods inherited from interface org.wildfly.clustering.server.expiration.Expiration

    getTimeout, isImmortal

    Methods inherited from interface org.wildfly.clustering.session.cache.metadata.coarse.ImmutableSessionMetaDataEntry

    getCreationTime, isNew
  • Method Details

    • getLastAccessStartTime

      org.wildfly.clustering.server.offset.Value<Instant> getLastAccessStartTime()
      Description copied from interface: ImmutableSessionMetaDataEntry
      Returns the last access start time, as an offset of the creation time.
      Specified by:
      getLastAccessStartTime in interface ImmutableSessionMetaDataEntry
      Returns:
      the last access start time, as an offset of the creation time.
    • getLastAccessEndTime

      org.wildfly.clustering.server.offset.Value<Instant> getLastAccessEndTime()
      Description copied from interface: ImmutableSessionMetaDataEntry
      Returns the last access end time, as an offset of the last access start time.
      Specified by:
      getLastAccessEndTime in interface ImmutableSessionMetaDataEntry
      Returns:
      the last access end time, as an offset of the last access start time.
    • setTimeout

      void setTimeout(Duration timeout)
      Sets the session timeout.
      Parameters:
      timeout - the session timeout