Package org.wildfly.clustering.session
Interface Session<C>
- Type Parameters:
C- the session context type
- All Superinterfaces:
AutoCloseable,ImmutableSession,org.wildfly.clustering.server.Registration
- All Known Implementing Classes:
OOBSession
Represents a session.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionReturns this session's attributes.Returns the local context of this session.Returns this session's meta data.voidInvalidates this session.Methods inherited from interface org.wildfly.clustering.session.ImmutableSession
getId, isValidMethods inherited from interface org.wildfly.clustering.server.Registration
close
-
Method Details
-
getMetaData
SessionMetaData getMetaData()Description copied from interface:ImmutableSessionReturns this session's meta data.- Specified by:
getMetaDatain interfaceImmutableSession- Returns:
- this session's meta data
-
invalidate
void invalidate()Invalidates this session.- Throws:
IllegalStateException- if this session was already invalidated.
-
getAttributes
SessionAttributes getAttributes()Description copied from interface:ImmutableSessionReturns this session's attributes.- Specified by:
getAttributesin interfaceImmutableSession- Returns:
- this session's attributes
-
getContext
C getContext()Returns the local context of this session. The local context is *not* replicated to other nodes in the cluster.- Returns:
- a local context
-