Interface ControlClientPool.Source
-
- Enclosing interface:
- ControlClientPool
- 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 static interface ControlClientPool.SourceA source ofInstructionRequestHandlers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstructionRequestHandlertake(java.lang.String workerId, java.time.Duration timeout)Retrieves theInstructionRequestHandlerfor the given worker id, blocking until available or the request times out.
-
-
-
Method Detail
-
take
InstructionRequestHandler take(java.lang.String workerId, java.time.Duration timeout) throws java.lang.Exception
Retrieves theInstructionRequestHandlerfor the given worker id, blocking until available or the request times out. Worker ids must be unique per pool. A given worker id must not be requested multiple times. Note that if the given worker id is never entered into the pool, this call will never return.- Throws:
java.util.concurrent.TimeoutException- if the request times outjava.lang.InterruptedException- if interrupted while waitingjava.lang.Exception
-
-