public class MessageFailedEventArgs extends MessageEventArgs
Constructor | Description |
---|---|
MessageFailedEventArgs(Message message,
DeliveryOption deliverOption,
Topic topic,
MessgeFailureReason messgeFailureReason) |
Creates MessageFailedEventArgs instance.
|
Modifier and Type | Method | Description |
---|---|---|
MessgeFailureReason |
getMessgeFailureReason() |
Gets the reason due to which message was not delivered.
|
getDeliveryOption, getMessage, getTopic, getTopicName
public MessageFailedEventArgs(Message message, DeliveryOption deliverOption, Topic topic, MessgeFailureReason messgeFailureReason)
message
- Message to be delivered.deliverOption
- Message delivery options.topic
- Topic to which message belongs.messgeFailureReason
- Reason of message delivery failure.public final MessgeFailureReason getMessgeFailureReason()