Interface Session<C>

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

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 this session's attributes.
    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

    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.
    • getAttributes

      SessionAttributes getAttributes()
      Description copied from interface: ImmutableSession
      Returns this session's attributes.
      Specified by:
      getAttributes in interface ImmutableSession
      Returns:
      this session's attributes
    • 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