Package com.devebot.opflow
Class OpflowRestrictor.Limit
java.lang.Object
com.devebot.opflow.OpflowRestrictable.Filter
com.devebot.opflow.OpflowRestrictor.Filter
com.devebot.opflow.OpflowRestrictor.Limit
- Enclosing class:
- OpflowRestrictor
public static class OpflowRestrictor.Limit extends OpflowRestrictor.Filter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description <T> Tfilter(OpflowRestrictable.Action<T> action)intgetSemaphoreLimit()intgetSemaphorePermits()longgetSemaphoreTimeout()booleanisSemaphoreEnabled()
-
Constructor Details
-
Method Details
-
getSemaphoreLimit
public int getSemaphoreLimit() -
getSemaphorePermits
public int getSemaphorePermits() -
isSemaphoreEnabled
public boolean isSemaphoreEnabled() -
getSemaphoreTimeout
public long getSemaphoreTimeout() -
filter
- Specified by:
filterin classOpflowRestrictable.Filter- Throws:
Throwable
-