Interface TaskLimiter
-
- All Known Implementing Classes:
PrioritizingTaskLimiter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TaskLimiter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTaskLimiter.Token
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static TaskLimiterbound(int size)static TaskLimiternoop()TaskLimiter.Tokenrequest(String topic)
-
-
-
Method Detail
-
request
TaskLimiter.Token request(String topic) throws InterruptedException
- Throws:
InterruptedException
-
noop
static TaskLimiter noop()
-
bound
static TaskLimiter bound(int size)
-
-