Class AttachedSession<C>
java.lang.Object
org.wildfly.clustering.session.cache.DecoratedSession<C>
org.wildfly.clustering.session.cache.AttachedSession<C>
- Type Parameters:
C- the session context type
- All Implemented Interfaces:
AutoCloseable,Supplier<Session<C>>,ImmutableSession,Session<C>
Decorated
Session whose methods throw an IllegalStateException if the session is not valid.- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns this session's attributes.Returns this session's meta data.voidInvalidates this session.Methods inherited from class org.wildfly.clustering.session.cache.DecoratedSession
equals, get, getContext, getId, hashCode, isValid, toString
-
Constructor Details
-
AttachedSession
-
-
Method Details
-
getMetaData
Description copied from interface:ImmutableSessionReturns this session's meta data.- Specified by:
getMetaDatain interfaceImmutableSession- Specified by:
getMetaDatain interfaceSession<C>- Overrides:
getMetaDatain classDecoratedSession<C>- Returns:
- this session's meta data
-
getAttributes
Description copied from interface:ImmutableSessionReturns this session's attributes.- Specified by:
getAttributesin interfaceImmutableSession- Overrides:
getAttributesin classDecoratedSession<C>- Returns:
- this session's attributes
-
invalidate
public void invalidate()Description copied from interface:SessionInvalidates this session.- Specified by:
invalidatein interfaceSession<C>- Overrides:
invalidatein classDecoratedSession<C>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSession<C>- Overrides:
closein classDecoratedSession<C>
-