Interface StaleSessionDetector.Detection

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    DelegatingDetection, MarkerBasedDetection, UserStateBasedDetection
    Enclosing interface:
    StaleSessionDetector

    public static interface StaleSessionDetector.Detection
    extends java.lang.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 Detail

      • 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 java.lang.AutoCloseable