public class BrokerEvent
extends org.springframework.amqp.event.AmqpEvent
| Constructor and Description |
|---|
BrokerEvent(java.lang.Object source,
org.springframework.amqp.core.MessageProperties properties)
Create an instance with the provided source and properties.
|
| Modifier and Type | Method and 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() |
public BrokerEvent(java.lang.Object source,
org.springframework.amqp.core.MessageProperties properties)
source - the source.properties - the properties.public java.lang.String getEventType()
MessageProperties.getReceivedRoutingKey()).public java.util.Map<java.lang.String,java.lang.Object> getEventProperties()
MessageProperties.getHeaders().public org.springframework.amqp.core.MessageProperties getMessageProperties()
MessageProperties from the event representing the event.
(The body is always blank).public java.lang.String toString()
toString in class java.util.EventObject