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 overlaid 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.
    • setTenant

      void setTenant(String tenant)
      Sets the tenant of the received message
      Parameters:
      tenant -
    • getTenant

      String getTenant()
      Returns:
      the tenant of the received message
    • setMessageHeaders

      void setMessageHeaders(Map<String,Object> headers)
      Sets the headers of the received message
      Parameters:
      headers -
    • getMessageHeaders

      Map<String,Object> getMessageHeaders()
      Returns:
      the headers of the received message
    • setMessageData

      void setMessageData(Map<String,Object> data)
      Sets the message data of the received message
      Parameters:
      data - message data
    • getMessageData

      Map<String,Object> getMessageData()
      Returns:
      the message data of the received message
    • 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.