Interface InvalidatableSessionMetaData

All Superinterfaces:
AutoCloseable, org.wildfly.clustering.server.expiration.Expiration, org.wildfly.clustering.server.expiration.ExpirationMetaData, ImmutableSessionMetaData, SessionMetaData
All Known Implementing Classes:
CompositeSessionMetaData, DefaultSessionMetaData

public interface InvalidatableSessionMetaData extends SessionMetaData, AutoCloseable
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.
    boolean
    Invalidates the session.
    boolean
    Indicates whether or not this session is still valid.

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

    getTimeout, isImmortal

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

    isExpired

    Methods inherited from interface org.wildfly.clustering.session.ImmutableSessionMetaData

    getCreationTime, getLastAccessEndTime, getLastAccessStartTime, getLastAccessTime, isNew

    Methods inherited from interface org.wildfly.clustering.session.SessionMetaData

    setLastAccess, setTimeout
  • Method Details

    • isValid

      boolean isValid()
      Indicates whether or not this session is still valid.
      Returns:
      true, if this session is valid, false otherwise
    • invalidate

      boolean invalidate()
      Invalidates the session.
      Returns:
      true, if session was invalidated, false if it was already invalid.
    • close

      void close()
      Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.
      Specified by:
      close in interface AutoCloseable