public class ReplyHolder extends Object
Exchange and AsyncCallback to be used
when the reply arrives, so we can set the reply on the Exchange and continue routing using the callback.| Constructor and Description |
|---|
ReplyHolder(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
String originalCorrelationId,
String correlationId,
com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] message)
Constructor to use when a reply message was received
|
ReplyHolder(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
String originalCorrelationId,
String correlationId,
long timeout)
Constructor to use when a timeout occurred
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.AsyncCallback |
getCallback() |
String |
getCorrelationId()
Gets the correlation id
|
org.apache.camel.Exchange |
getExchange() |
byte[] |
getMessage()
Gets the received message
|
String |
getOriginalCorrelationId()
Gets the original correlation id, if one was set when sending the message.
|
com.rabbitmq.client.AMQP.BasicProperties |
getProperties()
The message properties
|
long |
getRequestTimeout()
The timeout value
|
boolean |
isTimeout()
Whether timeout triggered or not.
|
public ReplyHolder(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
String originalCorrelationId,
String correlationId,
com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] message)
public org.apache.camel.Exchange getExchange()
public org.apache.camel.AsyncCallback getCallback()
public String getOriginalCorrelationId()
public String getCorrelationId()
getOriginalCorrelationId()public byte[] getMessage()
isTimeout()public boolean isTimeout()
public long getRequestTimeout()
public com.rabbitmq.client.AMQP.BasicProperties getProperties()
Apache Camel