Interface Session<L>

All Superinterfaces:
AutoCloseable, ImmutableSession
All Known Implementing Classes:
OOBSession

public interface Session<L> extends ImmutableSession, AutoCloseable
Represents a web session.
Author:
Paul Ferraro
  • Method Details

    • getMetaData

      SessionMetaData getMetaData()
      Returns this session's meta data.
      Specified by:
      getMetaData in interface ImmutableSession
      Returns:
      this session's meta data
    • invalidate

      void invalidate()
      Invalidates this session.
      Throws:
      IllegalStateException - if this session was already invalidated.
    • getAttributes

      SessionAttributes getAttributes()
      Returns this session's attributes.
      Specified by:
      getAttributes in interface ImmutableSession
      Returns:
      this session's attributes
    • close

      void close()
      Indicates that the application thread is finished with this session. This method is intended to be invoked within the context of a batch.
      Specified by:
      close in interface AutoCloseable
    • getLocalContext

      L getLocalContext()
      Returns the local context of this session. The local context is *not* replicated to other nodes in the cluster.
      Returns:
      a local context