Class ValidSession<C>
java.lang.Object
org.wildfly.clustering.session.cache.ValidSession<C>
- All Implemented Interfaces:
AutoCloseable,org.wildfly.clustering.server.Registration,ImmutableSession,Session<C>
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
-
getContext
- Specified by:
getContextin interfaceSession<C>
-
getMetaData
- Specified by:
getMetaDatain interfaceImmutableSession- Specified by:
getMetaDatain interfaceSession<C>
-
getAttributes
- Specified by:
getAttributesin interfaceImmutableSession- Specified by:
getAttributesin interfaceSession<C>
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceSession<C>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.server.Registration
-