Interface Session<L>
- All Superinterfaces:
AutoCloseable,ImmutableSession
- All Known Implementing Classes:
OOBSession
Represents a web session.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Indicates that the application thread is finished with this session.Returns 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.web.session.ImmutableSession
getId, isValid
-
Method Details
-
getMetaData
SessionMetaData getMetaData()Returns 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()Returns this session's attributes.- Specified by:
getAttributesin interfaceImmutableSession- Returns:
- this session's attributes
-
close
void close()Indicates that the application thread is finished with this session. This method is intended to be invoked within the context of a batch.- Specified by:
closein interfaceAutoCloseable
-
getLocalContext
L getLocalContext()Returns the local context of this session. The local context is *not* replicated to other nodes in the cluster.- Returns:
- a local context
-