Class ValidSession<L>
java.lang.Object
org.wildfly.clustering.web.cache.session.ValidSession<L>
- All Implemented Interfaces:
AutoCloseable,ImmutableSession,Session<L>
Session decorator whose methods throw an IllegalStateException if the session is not valid.- Author:
- Paul Ferraro
-
Constructor Details
-
ValidSession
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceImmutableSession
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceImmutableSession
-
getLocalContext
- Specified by:
getLocalContextin interfaceSession<L>
-
getMetaData
- Specified by:
getMetaDatain interfaceImmutableSession- Specified by:
getMetaDatain interfaceSession<L>
-
getAttributes
- Specified by:
getAttributesin interfaceImmutableSession- Specified by:
getAttributesin interfaceSession<L>
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceSession<L>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSession<L>
-