Interface Session<C>

Type Parameters:
C - the session context type
All Superinterfaces:
AutoCloseable, ImmutableSession

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

    • getMetaData

      SessionMetaData getMetaData()
      Description copied from interface: ImmutableSession
      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.
    • getContext

      C getContext()
      Returns the local context of this session. The local context is *not* replicated to other nodes in the cluster.
      Returns:
      a local context
    • close

      void close()
      Specified by:
      close in interface AutoCloseable