Class BrokerEvent

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      BrokerEvent​(java.lang.Object source, org.springframework.amqp.core.MessageProperties properties)
      Create an instance with the provided source and properties.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getEventProperties()
      Properties of the event MessageProperties.getHeaders().
      java.lang.String getEventType()
      The event type (MessageProperties.getReceivedRoutingKey()).
      org.springframework.amqp.core.MessageProperties getMessageProperties()
      The complete MessageProperties from the event representing the event.
      java.lang.String toString()  
      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BrokerEvent

        public BrokerEvent​(java.lang.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 Detail

      • getEventType

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

        public java.util.Map<java.lang.String,​java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject