Interface Session<C>

Type Parameters:
C - the session context type
All Superinterfaces:
AutoCloseable, ImmutableSession, org.wildfly.clustering.server.Registration

public interface Session<C> extends ImmutableSession, org.wildfly.clustering.server.Registration
Represents a session.
Author:
Paul Ferraro
  • Field Summary

    Fields inherited from interface org.wildfly.clustering.server.Registration

    EMPTY
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the local context of this session.
    Returns this session's meta data.
    void
    Invalidates this session.

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

    getAttributes, getId, isValid

    Methods inherited from interface org.wildfly.clustering.server.Registration

    close
  • 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