Class UserStateBasedDetection
java.lang.Object
de.hybris.platform.servicelayer.web.session.stale.impl.UserStateBasedDetection
- All Implemented Interfaces:
StaleSessionDetector.Detection,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Must be invoked at the end of the detection.booleanChecks if session is stale.
-
Constructor Details
-
UserStateBasedDetection
-
-
Method Details
-
isStaleSession
public boolean isStaleSession()Description copied from interface:StaleSessionDetector.DetectionChecks if session is stale.- Specified by:
isStaleSessionin interfaceStaleSessionDetector.Detection- Returns:
trueif session is stale,falseotherwise.
-
close
public void close()Description copied from interface:StaleSessionDetector.DetectionMust be invoked at the end of the detection. It allows the implementation to perform some post detection activities.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStaleSessionDetector.Detection
-