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
Generic immutable session implementation - independent of cache mapping strategy.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes) -
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 org.wildfly.clustering.session.cache.AbstractImmutableSession
equals, getId, hashCode, toString
-
Constructor Details
-
CompositeImmutableSession
public CompositeImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes)
-
-
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
-