Interface TopicMessageEventContext

All Superinterfaces:
EventContext

public interface TopicMessageEventContext extends EventContext
Describes the topic message of the MessagingService
  • Method Details

    • create

      static TopicMessageEventContext create(String topic)
      Parameters:
      topic - destination topic
      Returns:
      the TopicMessageEventContext
    • getIsInbound

      Boolean getIsInbound()
      Returns the inbound flag
      Returns:
      true, if the message has been received from a message broker or false, if it emitted to a message broker.
    • setIsInbound

      void setIsInbound(boolean inbound)
      Sets the inbound flag
      Parameters:
      inbound - true, if the message has been received from a message broker or false, if it emitted to a message broker.
    • getDataMap

      Map<String,Object> getDataMap()
      Returns the data map. In case of a cloudevents message the data map corresponds to the map, available under the "data" key.
      Returns:
      the data map
    • setDataMap

      void setDataMap(Map<String,Object> data)
      Sets the data map. In case of a cloudevents message the data map corresponds to the map, available under the "data" key.
      Parameters:
      data - the data map
    • getHeadersMap

      Map<String,Object> getHeadersMap()
      Returns the headers map. In case of a cloudevents message the headers map contains all properties of the message, except for "data".
      Returns:
      the header map
    • setHeadersMap

      void setHeadersMap(Map<String,Object> headers)
      Sets the headers map. In case of a cloudevents message the headers map contains all properties of the message, except for "data".
      Parameters:
      headers - the header data as a map
    • getMessageId

      String getMessageId()
      Returns the message ID usually generated by the message broker
      Returns:
      the message ID usually generated by the message broker
    • setMessageId

      void setMessageId(String id)
      Sets the message ID
      Parameters:
      id - the message ID