Class CompositeImmutableSession

java.lang.Object
org.wildfly.clustering.session.cache.AbstractImmutableSession
org.wildfly.clustering.session.cache.CompositeImmutableSession
All Implemented Interfaces:
ImmutableSession
Direct Known Subclasses:
CompositeSession

public class CompositeImmutableSession extends AbstractImmutableSession
An immutable session, composed of immutable metadata and attributes.
Author:
Paul Ferraro
  • Constructor Details

    • CompositeImmutableSession

      public CompositeImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String,Object> attributes)
      Creates a composite immutable session.
      Parameters:
      id - the identifier of this session
      metaData - the immutable metadata of this session.
      attributes - the attributes of this 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
    • getAttributes

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

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