Interface StaleSessionDetector.Detection
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DelegatingDetection,MarkerBasedDetection,UserStateBasedDetection
- Enclosing interface:
- StaleSessionDetector
Responsible for detecting if session is stale or not. The
close() method must be invoked at thee end of
the detection. To make it easier this interface extends the AutoCloseable so it can be used in the try with
resources block.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Must be invoked at the end of the detection.booleanChecks if session is stale.
-
Method Details
-
isStaleSession
boolean isStaleSession()Checks if session is stale.- Returns:
trueif session is stale,falseotherwise.
-
close
void close()Must be invoked at the end of the detection. It allows the implementation to perform some post detection activities.- Specified by:
closein interfaceAutoCloseable
-