Interface InvalidatableSessionMetaData
-
- All Superinterfaces:
AutoCloseable,Expiration,ExpirationMetaData,ImmutableSessionMetaData,SessionMetaData
- All Known Implementing Classes:
CompositeSessionMetaData
public interface InvalidatableSessionMetaData extends SessionMetaData, AutoCloseable
- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.booleaninvalidate()Invalidates the session.booleanisValid()Indicates whether or not this session is still valid.-
Methods inherited from interface org.wildfly.clustering.ee.expiration.Expiration
getTimeout, isImmortal
-
Methods inherited from interface org.wildfly.clustering.ee.expiration.ExpirationMetaData
getLastAccessTime, isExpired
-
Methods inherited from interface org.wildfly.clustering.web.session.ImmutableSessionMetaData
getCreationTime, getLastAccessStartTime, isNew
-
Methods inherited from interface org.wildfly.clustering.web.session.SessionMetaData
setLastAccess, setMaxInactiveInterval
-
-
-
-
Method Detail
-
isValid
boolean isValid()
Indicates whether or not this session is still valid.- Returns:
- true, if this session is valid, false otherwise
-
invalidate
boolean invalidate()
Invalidates the session.- Returns:
- true, if session was invalidated, false if it was already invalid.
-
close
void close()
Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.- Specified by:
closein interfaceAutoCloseable
-
-