| Package | Description |
|---|---|
| io.debezium.util |
| Modifier and Type | Method and Description |
|---|---|
static Threads.TimeSince |
Threads.timeSince(Clock clock)
Obtain a
Threads.TimeSince that uses the given clock to record the time elapsed. |
| Modifier and Type | Method and Description |
|---|---|
static Thread |
Threads.interruptAfterTimeout(String threadName,
long timeout,
TimeUnit timeoutUnit,
Threads.TimeSince elapsedTimer)
Create a thread that will interrupt the calling thread when the
elapsed time has exceeded the
specified amount. |
static Thread |
Threads.interruptAfterTimeout(String threadName,
long timeout,
TimeUnit timeoutUnit,
Threads.TimeSince elapsedTimer,
Thread threadToInterrupt)
Create a thread that will interrupt the given thread when the
elapsed time has exceeded the
specified amount. |
static Thread |
Threads.timeout(String threadName,
long timeout,
TimeUnit timeoutUnit,
long sleepInterval,
TimeUnit sleepUnit,
Threads.TimeSince elapsedTimer,
Runnable uponTimeout)
Create a thread that will call the supplied function when the
elapsed time has exceeded the
specified amount. |
static Thread |
Threads.timeout(String threadName,
long timeout,
TimeUnit timeoutUnit,
Threads.TimeSince elapsedTimer,
Runnable uponTimeout)
Create a thread that will call the supplied function when the
elapsed time has exceeded the
specified amount. |
Copyright © 2019 JBoss by Red Hat. All rights reserved.