Package | Description |
---|---|
alluxio.heartbeat | |
alluxio.time |
Modifier and Type | Field and Description |
---|---|
protected Sleeper |
SleepingTimer.mSleeper |
Constructor and Description |
---|
SleepingTimer(String threadName,
org.slf4j.Logger logger,
java.time.Clock clock,
Sleeper sleeper,
java.util.function.Supplier<SleepIntervalSupplier> intervalSupplierSupplier)
Creates a new instance of
SleepingTimer . |
Modifier and Type | Class and Description |
---|---|
class |
SteppingThreadSleeper
A progressive sleeper that wakes up multiple times during sleep to check if the requested sleep
duration has changed, and adjust its sleep duration accordingly.
|
class |
ThreadSleeper
A sleeping utility which delegates to Thread.sleep().
|
Modifier and Type | Method and Description |
---|---|
Sleeper |
TimeContext.getSleeper() |
Constructor and Description |
---|
SteppingThreadSleeper(Sleeper internalSleeper,
java.time.Clock clock)
Creates a new instance of
SteppingThreadSleeper . |
TimeContext(java.time.Clock clock,
Sleeper sleeper) |
Copyright © 2023. All Rights Reserved.