@ThreadSafe public class DriverYieldSignal extends Object
DriverYieldSignal signal = ...; signal.setWithDelay(duration, executor); try { // block } finally { signal.reset(); }
Constructor and Description |
---|
DriverYieldSignal() |
Modifier and Type | Method and Description |
---|---|
void |
forceYieldForTesting() |
boolean |
isSet() |
void |
reset() |
void |
resetYieldForTesting() |
void |
setWithDelay(long maxRunNanos,
ScheduledExecutorService executor) |
String |
toString() |
public void setWithDelay(long maxRunNanos, ScheduledExecutorService executor)
public void reset()
public boolean isSet()
public void forceYieldForTesting()
public void resetYieldForTesting()
Copyright © 2012–2019. All rights reserved.