Class MutableSessionMetaDataEntry

java.lang.Object
org.wildfly.clustering.session.cache.metadata.coarse.AbstractSessionMetaDataEntry
org.wildfly.clustering.session.cache.metadata.coarse.MutableSessionMetaDataEntry
All Implemented Interfaces:
ImmutableSessionMetaDataEntry, SessionMetaDataEntry

public class MutableSessionMetaDataEntry extends AbstractSessionMetaDataEntry
SessionMetaDataEntry decorator that captures mutations via a MutableSessionMetaDataOffsetValues.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • isNew

      public boolean isNew()
      Description copied from interface: ImmutableSessionMetaDataEntry
      Returns true, if this is a newly created entry, false otherwise.
      Returns:
      true, if this is a newly created entry, false otherwise.
    • getCreationTime

      public Instant getCreationTime()
      Description copied from interface: ImmutableSessionMetaDataEntry
      Returns the time this entry was created.
      Returns:
      the creation time
    • getMaxIdle

      public Duration getMaxIdle()
      Description copied from interface: ImmutableSessionMetaDataEntry
      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.
    • setMaxIdle

      public void setMaxIdle(Duration timeout)
      Description copied from interface: SessionMetaDataEntry
      Specifies the duration of time since last access after which this session will expire.
      Parameters:
      timeout - the duration of time since last access after which this session will expire.
    • getLastAccessStartTime

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

      public Value<Instant> getLastAccessEndTime()
      Description copied from interface: ImmutableSessionMetaDataEntry
      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.