Package io.trino.operator
Class DriverYieldSignal
- java.lang.Object
-
- io.trino.operator.DriverYieldSignal
-
@ThreadSafe public class DriverYieldSignal extends Object
Methods setWithDelay and reset should be used in pairs; usually follow the following idiom:{@code DriverYieldSignal signal = ...; signal.setWithDelay(duration, executor); try { // block } finally { signal.reset(); }
-
-
Constructor Summary
Constructors Constructor Description DriverYieldSignal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforceYieldForTesting()booleanisSet()voidreset()voidresetYieldForTesting()voidsetWithDelay(long maxRunNanos, ScheduledExecutorService executor)StringtoString()
-
-
-
Method Detail
-
setWithDelay
public void setWithDelay(long maxRunNanos, ScheduledExecutorService executor)
-
reset
public void reset()
-
isSet
public boolean isSet()
-
forceYieldForTesting
public void forceYieldForTesting()
-
resetYieldForTesting
public void resetYieldForTesting()
-
-