Package com.devebot.opflow
Class OpflowRestrictor.Pause
java.lang.Object
com.devebot.opflow.OpflowRestrictable.Filter
com.devebot.opflow.OpflowRestrictor.Filter
com.devebot.opflow.OpflowRestrictor.Pause
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- OpflowRestrictor
public static class OpflowRestrictor.Pause extends OpflowRestrictor.Filter implements AutoCloseable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclose()<T> Tfilter(OpflowRestrictable.Action<T> action)longgetPauseDuration()longgetPauseElapsed()longgetPauseTimeout()booleanisPaused()booleanisPauseEnabled()Map<String,Object>pause(long duration)Map<String,Object>unpause()
-
Constructor Details
-
Method Details
-
isPauseEnabled
public boolean isPauseEnabled() -
getPauseTimeout
public long getPauseTimeout() -
getPauseDuration
public long getPauseDuration() -
getPauseElapsed
public long getPauseElapsed() -
isPaused
public boolean isPaused() -
pause
-
unpause
-
filter
- Specified by:
filterin classOpflowRestrictable.Filter- Throws:
Throwable
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-