public final class AepSendExceptionEvent extends AlertEvent
This event is dispatched to an application to notify it that the AEP engine has encountered a send exception and was configured to log and exception and continue for such a scenario.
AepSendExceptionEvents are emitted only for sends that fail during background commit. This event is not emitted in cases where the exception is thrown to the appplication.
count, head, next, prev
Modifier and Type | Method and Description |
---|---|
static AepSendExceptionEvent |
create(MessageBusBinding binding,
MessageChannel channel,
MessageView view,
Exception failure)
Create a new (initialized) send exception event.
|
static Event |
create(Properties props)
Create a new (uninitialized) send exception event.
|
Exception |
getException()
Get the send exception.
|
MessageChannel |
getMessageChannel()
Get the channel associated with the failed send.
|
MessageView |
getMessageView()
Get the the message for which send failed.
|
MessageView |
getTriggeringMessage()
Returns the triggering message as specified by
IAlertEvent.getTriggeringMessage() .. |
void |
setTriggeringMessage(MessageView triggeringMessage)
Set the triggering message for the send exception event.
|
String |
toString()
Get a string representation of the object
|
getBackingMessage, getEventTime, setBackingMessage
acquire, dispose, getAcknowledger, getAttachment, getDelay, getDispatchTime, getInstanceNumber, getOfferTs, getPollTs, getPool, getRemainingTime, getScheduledTime, getSource, getType, init, isEndOfBatch, isHandled, owners, referenceTracker, setAcknowledger, setAttachment, setDelay, setDispatchTime, setEndOfBatch, setHandled, setPool, setScheduledTime, setSource
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
acquire, dispose, getAcknowledger, getAttachment, getDelay, getDispatchTime, getInstanceNumber, getRemainingTime, getScheduledTime, getSource, getType, isEndOfBatch, isHandled, owners, setAcknowledger, setAttachment, setDelay, setEndOfBatch, setHandled, setSource
referenceTracker
public static Event create(Properties props)
This method instantiates a new send exception event object. The method is for use by the event factory to instantiate new send exception events. The method should not be used directly by the user since the method bypasses any event pooling i.e. it creates a new send exception event object even if there are eligible event objects available in the event type's pool.
public static AepSendExceptionEvent create(MessageBusBinding binding, MessageChannel channel, MessageView view, Exception failure)
binding
- The binding from where this event originatedchannel
- The channel through which the stabilized message was sent.view
- The stabilized message view.failure
- The message stabilization status.
This method instantiates and initializes a send exception event. The method uses the event factory to instantiate a new send exception event (the factory recycles objects through the event type's object pool is configured for the type) and then initializes it with the supplied parameters.
public final MessageChannel getMessageChannel()
public final MessageView getMessageView()
This method returns the message view supplied to the channel send method that this event corresponds to.
public final Exception getException()
public final void setTriggeringMessage(MessageView triggeringMessage)
For a solicited send the triggering message is set to the inbound message that triggered the send. For an unsolicited send the triggering message is set to null.
IAlertEvent.getTriggeringMessage()
public final MessageView getTriggeringMessage()
IAlertEvent.getTriggeringMessage()
..
This implementation returns the message that caused the send exception.
getTriggeringMessage
in interface IAlertEvent
getTriggeringMessage
in class AlertEvent
IAlertEvent.getTriggeringMessage()
public String toString()
toString
in class AlertEvent
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.