Package org.hobbit.core.rabbit
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidsetResponse(byte[] response) Calls the internal set method of theAbstractFutureclass.Methods inherited from class com.google.common.util.concurrent.AbstractFuture
addListener, cancel, get, get, interruptTask, isCancelled, isDone, set, setException, wasInterrupted
-
Constructor Details
-
RabbitRpcRequest
protected RabbitRpcRequest()
-
-
Method Details
-
setResponse
public void setResponse(byte[] response) Calls the internal set method of theAbstractFutureclass.- Parameters:
response- the response this request is waiting for
-