public class BrokerEvent extends AmqpEvent
Constructor and Description |
---|
BrokerEvent(java.lang.Object source,
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() ). |
MessageProperties |
getMessageProperties()
The complete
MessageProperties from the event representing the event. |
java.lang.String |
toString() |
public BrokerEvent(java.lang.Object source, 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 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