public class OutboundMessageResult<OMSG extends OutboundMessage> extends Object
| Constructor and Description |
|---|
OutboundMessageResult(OMSG outboundMessage,
boolean ack)
Constructs a result which is described by the initial message that has been published and the acknowledgment
status.
|
OutboundMessageResult(OMSG outboundMessage,
boolean ack,
boolean returned)
Constructs a result which is described by the initial message that has been published, the acknowledgment
status, and the returned status.
|
| Modifier and Type | Method and Description |
|---|---|
OMSG |
getOutboundMessage()
Defines the message that has been published.
|
boolean |
isAck()
Defines whether the message has been acknowledged by the broker or not.
|
boolean |
isReturned()
Defines whether the message has been returned by the broker or not.
|
String |
toString() |
public OutboundMessageResult(OMSG outboundMessage, boolean ack)
outboundMessage - The message that has been publishedack - Whether the message has been acknowledged by the broker or notpublic OutboundMessageResult(OMSG outboundMessage, boolean ack, boolean returned)
outboundMessage - The message that has been publishedack - Whether the message has been acknowledged by the broker or notreturned - Whether the message was undeliverable and hence returnedpublic OMSG getOutboundMessage()
public boolean isAck()
isReturned method.public boolean isReturned()