Interface ImmutableSession

All Known Subinterfaces:
CacheableSession<C>, Session<C>
All Known Implementing Classes:
AbstractImmutableSession, AttachedSession, CachedSession, CompositeImmutableSession, CompositeSession, DecoratedSession, DetachedSession, ManagedSession, SimpleImmutableSession

public interface ImmutableSession
An immutable view of a session.
Author:
Paul Ferraro
  • Method Details

    • getId

      String getId()
      Specifies this session's unique identifier.
      Returns:
      a unique identifier for this session.
    • isValid

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

      Returns this session's meta data.
      Returns:
      this session's meta data
      Throws:
      IllegalStateException - if this session is invalid
    • getAttributes

      Map<String,Object> getAttributes()
      Returns this session's attributes.
      Returns:
      this session's attributes
      Throws:
      IllegalStateException - if this session is invalid