public class AMQPTransportBuffers extends Object
| Constructor and Description |
|---|
AMQPTransportBuffers() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestMessage(AMQPTransportMessage msg)
Add a message to the request message buffer
|
void |
addResponseMessage(AMQPTransportMessage msg)
Add a response message to the response buffer
|
AMQPTransportMessage |
getRequestMessage()
Returns a request message from the request message buffer
|
BlockingQueue<AMQPTransportMessage> |
getRequestMessageBuffer()
Returns the request message buffer in transport
|
List<AMQPTransportMessage> |
getResponseMessageList(int blockSize)
Returns the response messages as a list
|
public List<AMQPTransportMessage> getResponseMessageList(int blockSize) throws AMQPTransportException
blockSize - the block blockSize of the response message listAMQPTransportException - in case of an errorpublic void addResponseMessage(AMQPTransportMessage msg) throws InterruptedException
msg - the response messageInterruptedException - throws in case of an errorpublic BlockingQueue<AMQPTransportMessage> getRequestMessageBuffer()
public void addRequestMessage(AMQPTransportMessage msg)
msg - the message to add into the bufferpublic AMQPTransportMessage getRequestMessage()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.