Interface StaleSessionDetector.Detection

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
DelegatingDetection, MarkerBasedDetection, UserStateBasedDetection
Enclosing interface:
StaleSessionDetector

public static interface StaleSessionDetector.Detection extends AutoCloseable
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 Type
    Method
    Description
    void
    Must be invoked at the end of the detection.
    boolean
    Checks if session is stale.
  • Method Details

    • isStaleSession

      boolean isStaleSession()
      Checks if session is stale.
      Returns:
      true if session is stale, false otherwise.
    • close

      void close()
      Must be invoked at the end of the detection. It allows the implementation to perform some post detection activities.
      Specified by:
      close in interface AutoCloseable