Interface SessionTimeout

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SessionTimeout
Provides access to the configured session timeout. The timeout is available irrespective of the deployment type:
  • a servlet web application
    • using an embedded web server
    • deployed as a war file
  • a reactive web application
Since:
4.0.1
Author:
Andy Wilkinson
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Duration
    Returns the session timeout or null if no timeout has been configured.
  • Method Details

    • getTimeout

      @Nullable Duration getTimeout()
      Returns the session timeout or null if no timeout has been configured.
      Returns:
      the timeout or null