Interface MessagingErrorEventContext

All Superinterfaces:
EventContext

public interface MessagingErrorEventContext extends EventContext
EventContext for the event MessagingService.EVENT_MESSAGING_ERROR, that allows to handle acknowledgement of a message on the messaging channel
  • Method Details

    • create

      static MessagingErrorEventContext create()
      Creates an EventContext already overlayed with this interface. The event is set to be MessagingService.EVENT_MESSAGING_ERROR
      Returns:
      the MessagingErrorEventContext
    • setException

      void setException(ServiceException exception)
      Sets the ServiceException that was thrown while handling the message.
      Parameters:
      exception - the ServiceException that was thrown while handling the message.
    • getException

      ServiceException getException()
      Returns:
      the ServiceException that caused the error during the message handling.
    • setResult

      void setResult(boolean acknowledge)
      Determines whether the message should be acknowledged or not.
      Parameters:
      acknowledge - true if the message should be acknowledged on the messaging channel and false otherwise.
    • getResult

      boolean getResult()
      Returns:
      true if the message should be acknowledged on the messaging channel and false otherwise.