-
- All Implemented Interfaces:
-
java.util.concurrent.Delayed,kotlin.Comparable
public abstract class DelayedTask implements Delayed
-
-
Field Summary
Fields Modifier and Type Field Description private LongnextDelayprivate Longlatencyprivate LongmaxTimeoutprivate final RetryScheduleretryScheduleprivate Longtimestamp
-
Constructor Summary
Constructors Constructor Description DelayedTask(RetrySchedule retrySchedule, Long timestamp)
-
Method Summary
Modifier and Type Method Description final LonggetNextDelay()final UnitsetNextDelay(Long nextDelay)final LonggetLatency()final UnitsetLatency(Long latency)final LonggetMaxTimeout()final UnitsetMaxTimeout(Long maxTimeout)final RetrySchedulegetRetrySchedule()final LonggetTimestamp()final UnitsetTimestamp(Long timestamp)LonggetDelay(TimeUnit unit)IntegercompareTo(Delayed other)final Unitreschedule(Boolean success)-
-
Constructor Detail
-
DelayedTask
DelayedTask(RetrySchedule retrySchedule, Long timestamp)
-
-
Method Detail
-
getNextDelay
final Long getNextDelay()
-
setNextDelay
final Unit setNextDelay(Long nextDelay)
-
getLatency
final Long getLatency()
-
setLatency
final Unit setLatency(Long latency)
-
getMaxTimeout
final Long getMaxTimeout()
-
setMaxTimeout
final Unit setMaxTimeout(Long maxTimeout)
-
getRetrySchedule
final RetrySchedule getRetrySchedule()
-
getTimestamp
final Long getTimestamp()
-
setTimestamp
final Unit setTimestamp(Long timestamp)
-
reschedule
final Unit reschedule(Boolean success)
-
-
-
-