Class SimpleImmutableSession

java.lang.Object
org.wildfly.clustering.session.cache.AbstractImmutableSession
org.wildfly.clustering.session.cache.SimpleImmutableSession
All Implemented Interfaces:
ImmutableSession

public class SimpleImmutableSession extends AbstractImmutableSession
An immutable "snapshot" of a session which can be accessed outside the scope of a transaction.
Author:
Paul Ferraro
  • Constructor Details

    • SimpleImmutableSession

      public SimpleImmutableSession(ImmutableSession session)
      Creates an immutable session snapshot.
      Parameters:
      session - an immutable session
  • Method Details

    • isValid

      public boolean isValid()
      Description copied from interface: ImmutableSession
      Indicates whether or not this session is valid.
      Returns:
      true, if this session is valid, false otherwise
    • getMetaData

      public ImmutableSessionMetaData getMetaData()
      Description copied from interface: ImmutableSession
      Returns this session's meta data.
      Returns:
      this session's meta data
    • getAttributes

      public Map<String,Object> getAttributes()
      Description copied from interface: ImmutableSession
      Returns this session's attributes.
      Returns:
      this session's attributes