Interface SessionExpirationPolicy


public interface SessionExpirationPolicy
A rule that determines the expiration for a backend session based on the current HTTP session timeout.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    A policy that prevents expiration.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(long sessionTimeout)
    Computes the maximum amount of time an inactive session should be preserved in the backed, based on the given HTTP session timeout expressed in seconds.
  • Field Details

  • Method Details

    • apply

      Duration apply(long sessionTimeout)
      Computes the maximum amount of time an inactive session should be preserved in the backed, based on the given HTTP session timeout expressed in seconds.

      A return value of Duration.ZERO or less means the backend session should never expire.
      Parameters:
      sessionTimeout - HTTP session timeout expressed in seconds.
      Returns:
      the maximum amount of time an inactive session should be preserved in the backed.