Class BrokerEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.amqp.event.AmqpEvent
org.springframework.amqp.rabbit.core.BrokerEvent
All Implemented Interfaces:
Serializable

public class BrokerEvent extends org.springframework.amqp.event.AmqpEvent
Represents a broker event generated by the Event Exchange Plugin (https://www.rabbitmq.com/event-exchange.html).
Since:
2.1
See Also:
  • Constructor Details

    • BrokerEvent

      public BrokerEvent(Object source, org.springframework.amqp.core.MessageProperties properties)
      Create an instance with the provided source and properties.
      Parameters:
      source - the source.
      properties - the properties.
  • Method Details

    • getEventType

      public String getEventType()
      The event type (MessageProperties.getReceivedRoutingKey()).
      Returns:
      the type.
    • getEventProperties

      public Map<String,Object> getEventProperties()
      Properties of the event MessageProperties.getHeaders().
      Returns:
      the properties.
    • getMessageProperties

      public org.springframework.amqp.core.MessageProperties getMessageProperties()
      The complete MessageProperties from the event representing the event. (The body is always blank).
      Returns:
      the message properties.
    • toString

      public String toString()
      Overrides:
      toString in class EventObject