Class RabbitRpcClient.RabbitRpcRequest

java.lang.Object
com.google.common.util.concurrent.AbstractFuture<byte[]>
org.hobbit.core.rabbit.RabbitRpcClient.RabbitRpcRequest
All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<byte[]>, Future<byte[]>
Enclosing class:
RabbitRpcClient

protected static class RabbitRpcClient.RabbitRpcRequest extends com.google.common.util.concurrent.AbstractFuture<byte[]> implements Future<byte[]>
Simple extension of the AbstractFuture class that waits for the response which is set by the setResponse(byte[] response).
Author:
Michael Röder (roeder@informatik.uni-leipzig.de)
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setResponse(byte[] response)
    Calls the internal set method of the AbstractFuture class.

    Methods inherited from class com.google.common.util.concurrent.AbstractFuture

    addListener, cancel, get, get, interruptTask, isCancelled, isDone, set, setException, wasInterrupted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.concurrent.Future

    cancel, get, get, isCancelled, isDone
  • Constructor Details

    • RabbitRpcRequest

      protected RabbitRpcRequest()
  • Method Details

    • setResponse

      public void setResponse(byte[] response)
      Calls the internal set method of the AbstractFuture class.
      Parameters:
      response - the response this request is waiting for