Interface InvalidatableSessionMetaData

All Superinterfaces:
AutoCloseable, Expiration, ExpirationMetaData, ImmutableSessionMetaData, SessionMetaData
All Known Implementing Classes:
CompositeSessionMetaData, DefaultSessionMetaData

public interface InvalidatableSessionMetaData extends SessionMetaData, AutoCloseable
An invalidatable view of session metadata.
Author:
Paul Ferraro
  • 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