public interface MessagingErrorEventContext extends EventContext
EventContext
for the event MessagingService.EVENT_MESSAGING_ERROR
, that
allows to handle acknowledgement of a message on the messaging channelModifier and Type | Method and Description |
---|---|
static MessagingErrorEventContext |
create()
Creates an
EventContext already overlayed with this interface. |
ServiceException |
getException() |
boolean |
getResult() |
void |
setException(ServiceException exception)
Sets the
ServiceException that was thrown while handling the message. |
void |
setResult(boolean acknowledge)
Determines whether the message should be acknowledged or not.
|
as, create, create, get, getAuthenticationInfo, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getService, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, put, setCompleted
static MessagingErrorEventContext create()
EventContext
already overlayed with this interface. The event is set to be MessagingService.EVENT_MESSAGING_ERROR
MessagingErrorEventContext
void setException(ServiceException exception)
ServiceException
that was thrown while handling the message.exception
- the ServiceException
that was thrown while handling the message.ServiceException getException()
ServiceException
that caused the error during the message handling.void setResult(boolean acknowledge)
acknowledge
- true
if the message should be acknowledged on the messaging channel and false
otherwise.boolean getResult()
true
if the message should be acknowledged on the messaging channel and false
otherwise.Copyright © 2023. All rights reserved.