-
Method Summary
void
Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.
boolean
boolean
Indicates whether or not this session is still valid.
Methods inherited from interface org.wildfly.clustering.server.expiration.Expiration
getTimeout, isImmortal
isExpired
-
Method Details
-
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:
close in interface AutoCloseable