| Package | Description |
|---|---|
| io.debezium.util |
| Modifier and Type | Field and Description |
|---|---|
static Clock |
Clock.SYSTEM
|
| Modifier and Type | Method and Description |
|---|---|
static Clock |
Clock.system()
|
| Modifier and Type | Method and Description |
|---|---|
static ElapsedTimeStrategy |
ElapsedTimeStrategy.constant(Clock clock,
long delayInMilliseconds)
Create a strategy whose time periods are constant.
|
static ElapsedTimeStrategy |
ElapsedTimeStrategy.exponential(Clock clock,
long initialDelayInMilliseconds,
long maxDelayInMilliseconds)
Create a strategy whose time periods increase exponentially.
|
static ElapsedTimeStrategy |
ElapsedTimeStrategy.exponential(Clock clock,
long initialDelayInMilliseconds,
long maxDelayInMilliseconds,
double multiplier)
Create a strategy whose time periods increase exponentially.
|
static ElapsedTimeStrategy |
ElapsedTimeStrategy.linear(Clock clock,
long delayInMilliseconds)
Create a strategy whose time periods linearly increase in length.
|
static Metronome |
Metronome.parker(Duration period,
Clock timeSystem) |
static Metronome |
Metronome.parker(long period,
TimeUnit unit,
Clock timeSystem)
Create a new metronome that starts ticking immediately and that uses
LockSupport.parkNanos(long) to wait. |
static Metronome |
Metronome.sleeper(Duration period,
Clock timeSystem) |
static Metronome |
Metronome.sleeper(long period,
TimeUnit unit,
Clock timeSystem)
Create a new metronome that starts ticking immediately and that uses
Thread.sleep(long) to wait. |
static ElapsedTimeStrategy |
ElapsedTimeStrategy.step(Clock clock,
long preStepDelayInMilliseconds,
BooleanSupplier stepFunction,
long postStepDelayInMilliseconds)
Create a strategy whose time periods start out at one length but then change to another length after another
period has elapsed.
|
static Threads.Timer |
Threads.timer(Clock clock,
Duration time)
Obtain a
Threads.Timer that uses the given clock to indicate that a pre-defined time period expired. |
static Threads.TimeSince |
Threads.timeSince(Clock clock)
Obtain a
Threads.TimeSince that uses the given clock to record the time elapsed. |
Copyright © 2018 JBoss by Red Hat. All rights reserved.