public interface MessageHistoryFactory extends StaticService, CamelContextAware
MessageHistory
instances.Modifier and Type | Method and Description |
---|---|
String |
getNodePattern() |
boolean |
isCopyMessage() |
MessageHistory |
newMessageHistory(String routeId,
NamedNode node,
long timestamp,
Exchange exchange)
Creates a new
MessageHistory |
void |
setCopyMessage(boolean copyMessage)
Sets whether to make a copy of the message in the
MessageHistory . |
void |
setNodePattern(String nodePattern)
An optional pattern to filter which nodes to trace in this message history.
|
getCamelContext, setCamelContext, trySetCamelContext
MessageHistory newMessageHistory(String routeId, NamedNode node, long timestamp, Exchange exchange)
MessageHistory
routeId
- the route idnode
- the node in the routetimestamp
- the time the message processed at this node.exchange
- the current exchangeMessageHistory
boolean isCopyMessage()
void setCopyMessage(boolean copyMessage)
MessageHistory
.
By default this is turned off. Beware that you should not mutate or change the content
on the copied message, as its purpose is as a read-only view of the message.String getNodePattern()
void setNodePattern(String nodePattern)
Apache Camel