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 Summary
Modifier and TypeMethodDescriptiongetValidTtlThreshold(LoginToken loginToken) Returns the minimum TTL duration to consider a token valid after renewal.@Nullable InstantnextExecution(LoginToken loginToken) Determine the next execution time according to the given trigger context. 
- 
Method Details
- 
nextExecution
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 
nullif the trigger won't fire anymore. - Since:
 - 3.1
 
 - 
getValidTtlThreshold
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 
Durationto consider a token valid. - Since:
 - 2.0
 
 
 -