Package com.rabbitmq.client.impl
Class AMQChannel.BlockingRpcContinuation<T>
- java.lang.Object
-
- com.rabbitmq.client.impl.AMQChannel.BlockingRpcContinuation<T>
-
- All Implemented Interfaces:
AMQChannel.RpcContinuation
- Direct Known Subclasses:
AMQChannel.SimpleBlockingRpcContinuation
- Enclosing class:
- AMQChannel
public abstract static class AMQChannel.BlockingRpcContinuation<T> extends Object implements AMQChannel.RpcContinuation
-
-
Field Summary
Fields Modifier and Type Field Description BlockingValueOrException<T,ShutdownSignalException>_blockerprotected Methodrequest
-
Constructor Summary
Constructors Constructor Description BlockingRpcContinuation()BlockingRpcContinuation(Method request)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancanHandleReply(AMQCommand command)TgetReply()TgetReply(int timeout)voidhandleCommand(AMQCommand command)voidhandleShutdownSignal(ShutdownSignalException signal)abstract TtransformReply(AMQCommand command)
-
-
-
Field Detail
-
_blocker
public final BlockingValueOrException<T,ShutdownSignalException> _blocker
-
request
protected final Method request
-
-
Constructor Detail
-
BlockingRpcContinuation
public BlockingRpcContinuation()
-
BlockingRpcContinuation
public BlockingRpcContinuation(Method request)
-
-
Method Detail
-
handleCommand
public void handleCommand(AMQCommand command)
- Specified by:
handleCommandin interfaceAMQChannel.RpcContinuation
-
handleShutdownSignal
public void handleShutdownSignal(ShutdownSignalException signal)
- Specified by:
handleShutdownSignalin interfaceAMQChannel.RpcContinuation
-
getReply
public T getReply() throws ShutdownSignalException
- Throws:
ShutdownSignalException
-
getReply
public T getReply(int timeout) throws ShutdownSignalException, TimeoutException
-
canHandleReply
public boolean canHandleReply(AMQCommand command)
- Specified by:
canHandleReplyin interfaceAMQChannel.RpcContinuation- Returns:
- true if the reply command can be handled for this request
-
transformReply
public abstract T transformReply(AMQCommand command)
-
-