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
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionBrokerEvent
(Object source, MessageProperties properties) Create an instance with the provided source and properties. -
Method Summary
Modifier and TypeMethodDescriptionProperties of the eventMessageProperties.getHeaders()
.The event type (MessageProperties.getReceivedRoutingKey()
).The completeMessageProperties
from the event representing the event.toString()
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
BrokerEvent
Create an instance with the provided source and properties.- Parameters:
source
- the source.properties
- the properties.
-
-
Method Details
-
getEventType
The event type (MessageProperties.getReceivedRoutingKey()
).- Returns:
- the type.
-
getEventProperties
Properties of the eventMessageProperties.getHeaders()
.- Returns:
- the properties.
-
getMessageProperties
The completeMessageProperties
from the event representing the event. (The body is always blank).- Returns:
- the message properties.
-
toString
- Overrides:
toString
in classEventObject
-