Interface StaleSessionDetector.Detection
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
MarkerBasedDetection
- Enclosing interface:
- StaleSessionDetector
public static interface StaleSessionDetector.Detection extends java.lang.AutoCloseableResponsible for detecting if session is stale or not. Theclose()method must be invoked at thee end of the detection. To make it easier this interface extends theAutoCloseableso it can be used in the try with resources block.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Must be invoked at the end of the detection.booleanisStaleSession()Checks if session is stale.
-
-
-
Method Detail
-
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 interfacejava.lang.AutoCloseable
-
-