Interface LifecycleAwareSessionManagerSupport.RefreshTrigger

All Known Implementing Classes:
LifecycleAwareSessionManagerSupport.FixedTimeoutRefreshTrigger
Enclosing class:
LifecycleAwareSessionManagerSupport

public static interface LifecycleAwareSessionManagerSupport.RefreshTrigger
Common interface for trigger objects that determine the next execution time of a refresh task.
  • Method Details

    • nextExecutionTime

      @Nullable @Deprecated(since="3.1") default Date nextExecutionTime(LoginToken loginToken)
      Deprecated.
      since 3.1, use instead.
      Determine the next execution time according to the given trigger context.
      Parameters:
      loginToken - login token encapsulating renewability and lease duration.
      Returns:
      the next execution time as defined by the trigger, or null if the trigger won't fire anymore.
    • nextExecution

      @Nullable Instant nextExecution(LoginToken loginToken)
      Determine the next execution time according to the given trigger context.
      Parameters:
      loginToken - login token encapsulating renewability and lease duration.
      Returns:
      the next execution time as defined by the trigger, or null if the trigger won't fire anymore.
      Since:
      3.1
    • getValidTtlThreshold

      Duration getValidTtlThreshold(LoginToken loginToken)
      Returns the minimum TTL duration to consider a token valid after renewal. Tokens with a shorter TTL are revoked and considered expired.
      Parameters:
      loginToken - the login token after renewal.
      Returns:
      minimum TTL Duration to consider a token valid.
      Since:
      2.0