public static class LifecycleAwareSessionManager.FixedTimeoutRefreshTrigger extends Object implements LifecycleAwareSessionManager.RefreshTrigger
LifecycleAwareSessionManager.RefreshTrigger
implementation using a fixed timeout to schedule renewal
before a LoginToken
expires.Constructor and Description |
---|
FixedTimeoutRefreshTrigger(long timeout,
TimeUnit timeUnit)
Create a new
LifecycleAwareSessionManager.FixedTimeoutRefreshTrigger to calculate execution times of
timeout before the LoginToken expires |
Modifier and Type | Method and Description |
---|---|
Date |
nextExecutionTime(LoginToken loginToken)
Determine the next execution time according to the given trigger context.
|
public FixedTimeoutRefreshTrigger(long timeout, TimeUnit timeUnit)
LifecycleAwareSessionManager.FixedTimeoutRefreshTrigger
to calculate execution times of
timeout
before the LoginToken
expirestimeout
- timeout value, non-negative long value.timeUnit
- must not be null.public Date nextExecutionTime(LoginToken loginToken)
LifecycleAwareSessionManager.RefreshTrigger
nextExecutionTime
in interface LifecycleAwareSessionManager.RefreshTrigger
loginToken
- login token encapsulating renewability and lease duration.null
if
the trigger won't fire anymoreCopyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.