Package org.apache.camel.spi
Interface BacklogTracerEventMessage
public interface BacklogTracerEventMessage
Represents a traced message by the BacklogTracer.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionasJSon()
The event message as an org.apache.camel.util.json.JsonObject object.The exchange idThe content of the message as JSon (body and headers)The content of the message as XML (body and headers)Route idlong
Timestamp of the traced eventNode id where the message is being routed tolong
getUid()
Unique id of the traced messageboolean
isRest()
Whether this event was from a route that is created from Rest DSL.boolean
Whether this event was from a route that is created from route template or kamelet.toJSon
(int indent) Dumps the event message as JSon.toXml
(int indent) Dumps the event message as XML using theROOT_TAG
as root tag.
-
Field Details
-
ROOT_TAG
- See Also:
-
TIMESTAMP_FORMAT
- See Also:
-
-
Method Details
-
getUid
long getUid()Unique id of the traced message -
getTimestamp
long getTimestamp()Timestamp of the traced event -
getRouteId
String getRouteId()Route id -
isRest
boolean isRest()Whether this event was from a route that is created from Rest DSL. -
isTemplate
boolean isTemplate()Whether this event was from a route that is created from route template or kamelet. -
getToNode
String getToNode()Node id where the message is being routed to -
getExchangeId
String getExchangeId()The exchange id -
getMessageAsXml
String getMessageAsXml()The content of the message as XML (body and headers) -
getMessageAsJSon
String getMessageAsJSon()The content of the message as JSon (body and headers) -
toXml
Dumps the event message as XML using theROOT_TAG
as root tag. The timestamp tag is formatted in the format defined byTIMESTAMP_FORMAT
- Parameters:
indent
- number of spaces to indent- Returns:
- xml representation of this event
-
toJSon
Dumps the event message as JSon.- Parameters:
indent
- number of spaces to indent- Returns:
- JSon representation of this event
-
asJSon
The event message as an org.apache.camel.util.json.JsonObject object.
-