Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- abort() - Method in class io.aiven.commons.timing.Timer
-
Aborts the timer.
- abortTrigger - Variable in class io.aiven.commons.timing.Backoff
-
A function to call to abort the timer.
- AbortTrigger - Interface in io.aiven.commons.timing
-
A functional interface that will abort the timer.
- apply() - Method in interface io.aiven.commons.timing.AbortTrigger
-
Aborts the associated trigger.
- applyTimerRule() - Method in interface io.aiven.commons.timing.BackoffConfig
-
Gets the abort timer rule flag.
B
- Backoff - Class in io.aiven.commons.timing
-
Performs a delay based on the number of successive
Backoff.delay()orBackoff.cleanDelay()calls without aBackoff.reset(). - Backoff(BackoffConfig) - Constructor for class io.aiven.commons.timing.Backoff
-
Constructor.
- BackoffConfig - Interface in io.aiven.commons.timing
-
An interface to define the Backoff configuration.
C
- cleanDelay() - Method in class io.aiven.commons.timing.Backoff
-
Like
Backoff.delay()but swallows theInterruptedException.
D
- delay() - Method in class io.aiven.commons.timing.Backoff
-
Delay execution based on the number of times this method has been called.
E
- estimatedDelay() - Method in class io.aiven.commons.timing.Backoff
-
Calculates the delay without jitter.
G
- get() - Method in interface io.aiven.commons.timing.SupplierOfLong
-
Gets the long value.
- getAbortTrigger() - Method in interface io.aiven.commons.timing.BackoffConfig
-
The AbortTrigger that will abort the timer or otherwise signal that the backoff has reached the maximum delay and will no longer sleep.
- getBackoffConfig() - Method in class io.aiven.commons.timing.Timer
-
Gets a Backoff Config for this timer.
- getMaxJitter() - Method in class io.aiven.commons.timing.Backoff
-
Calculates the range of jitter in milliseconds.
- getSupplierOfTimeRemaining() - Method in interface io.aiven.commons.timing.BackoffConfig
-
Gets Supplier that will return the number of milliseconds remaining in the timer.
I
- io.aiven.commons.timing - module io.aiven.commons.timing
-
Timing module def
- io.aiven.commons.timing - package io.aiven.commons.timing
- isExpired() - Method in class io.aiven.commons.timing.Timer
-
Returns
trueif the timer has expired.
J
- JITTER_SUBTRAHEND - Static variable in class io.aiven.commons.timing.Backoff
-
The value subtracted from the jitter to center it.
M
- MAX_JITTER - Static variable in class io.aiven.commons.timing.Backoff
-
The maximum jitter random number.
- millisecondsRemaining() - Method in class io.aiven.commons.timing.Timer
-
Gets the maximum duration for this timer.
R
- reset() - Method in class io.aiven.commons.timing.Backoff
-
Reset the backoff time so that delay is again at the minimum.
- reset() - Method in class io.aiven.commons.timing.Timer
S
- setMinimumDelay(Duration) - Method in class io.aiven.commons.timing.Backoff
-
Set the minimum wait time.
- start() - Method in class io.aiven.commons.timing.Timer
- stop() - Method in class io.aiven.commons.timing.Timer
- SupplierOfLong - Interface in io.aiven.commons.timing
-
A functional interface to return long values.
T
- Timer - Class in io.aiven.commons.timing
-
Calculates elapsed time and flags when expired.
- Timer(Duration) - Constructor for class io.aiven.commons.timing.Timer
-
Constructor.
- timeRemaining - Variable in class io.aiven.commons.timing.Backoff
-
A supplier of the time remaining (in milliseconds) on the overriding timer.
- toString() - Method in class io.aiven.commons.timing.Backoff
All Classes and Interfaces|All Packages|Constant Field Values