Class BrokerEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class BrokerEvent
    extends AmqpEvent
    Represents a broker event generated by the Event Exchange Plugin (https://www.rabbitmq.com/event-exchange.html).
    Since:
    2.1
    Author:
    Gary Russell
    See Also:
    Serialized Form
    • Constructor Detail

      • BrokerEvent

        public BrokerEvent​(java.lang.Object source,
                           MessageProperties properties)
        Create an instance with the provided source and properties.
        Parameters:
        source - the source.
        properties - the properties.
    • Method Detail

      • getEventProperties

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject