Class Call

    • Field Detail

      • latch

        private final java.util.concurrent.CountDownLatch latch
      • id

        private final com.fasterxml.jackson.databind.JsonNode id
    • Method Detail

      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface java.util.concurrent.Future<JsonRpcResponse>
      • getId

        public com.fasterxml.jackson.databind.JsonNode getId()
      • get

        public JsonRpcResponse get()
                            throws java.lang.InterruptedException
        Specified by:
        get in interface java.util.concurrent.Future<JsonRpcResponse>
        Throws:
        java.lang.InterruptedException
      • get

        public JsonRpcResponse get​(long timeout,
                                   java.util.concurrent.TimeUnit unit)
                            throws java.lang.InterruptedException,
                                   java.util.concurrent.TimeoutException
        Specified by:
        get in interface java.util.concurrent.Future<JsonRpcResponse>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.TimeoutException
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface java.util.concurrent.Future<JsonRpcResponse>
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface java.util.concurrent.Future<JsonRpcResponse>
      • getCallback

        public BrokerCommandCallback getCallback()
        Description copied from interface: JsonRpcCall
        The callback to notify after the specific command was invoked.
        Specified by:
        getCallback in interface JsonRpcCall
        Returns:
        The callback that receives the notification.