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
An immutable session, composed of immutable metadata and attributes.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes) Creates a composite immutable session. -
Method Summary
Modifier and TypeMethodDescriptionReturns this session's attributes.Returns this session's meta data.booleanisValid()Indicates whether or not this session is valid.Methods inherited from class AbstractImmutableSession
equals, getId, hashCode, toString
-
Constructor Details
-
CompositeImmutableSession
public CompositeImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes) Creates a composite immutable session.- Parameters:
id- the identifier of this sessionmetaData- the immutable metadata of this session.attributes- the attributes of this session
-
-
Method Details
-
isValid
public boolean isValid()Description copied from interface:ImmutableSessionIndicates whether or not this session is valid.- Returns:
- true, if this session is valid, false otherwise
-
getAttributes
Description copied from interface:ImmutableSessionReturns this session's attributes.- Returns:
- this session's attributes
-
getMetaData
Description copied from interface:ImmutableSessionReturns this session's meta data.- Returns:
- this session's meta data
-