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.Source
    • Method Detail

      • take

        InstructionRequestHandler take​(java.lang.String workerId,
                                       java.time.Duration timeout)
                                throws java.lang.Exception
        Retrieves the InstructionRequestHandler for 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 out
        java.lang.InterruptedException - if interrupted while waiting
        java.lang.Exception