Interface Session<C>
- Type Parameters:
C- the session context type
- All Superinterfaces:
AutoCloseable,ImmutableSession
- All Known Subinterfaces:
CacheableSession<C>
- All Known Implementing Classes:
AttachedSession,CachedSession,CompositeSession,DecoratedSession,DetachedSession,ManagedSession
Represents a session.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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
getAttributes, getId, isValid
-
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.
-
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
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-