Package org.apache.camel.spi
Interface MessageHistoryFactory
- All Superinterfaces:
AutoCloseable
,CamelContextAware
,HasCamelContext
,Service
,StaticService
A factory to create
MessageHistory
instances.-
Method Summary
Modifier and TypeMethodDescriptionAn optional pattern to filter which nodes to trace in this message history.boolean
Whether to make a copy of the message in theMessageHistory
.newMessageHistory
(String routeId, NamedNode node, long timestamp, Exchange exchange) Creates a newMessageHistory
void
setCopyMessage
(boolean copyMessage) Sets whether to make a copy of the message in theMessageHistory
.void
setNodePattern
(String nodePattern) An optional pattern to filter which nodes to trace in this message history.Methods inherited from interface org.apache.camel.CamelContextAware
setCamelContext
Methods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContext
-
Method Details
-
newMessageHistory
Creates a newMessageHistory
- Parameters:
routeId
- the route idnode
- the node in the routetimestamp
- the time the message processed at this node.exchange
- the current exchange- Returns:
- a new
MessageHistory
-
isCopyMessage
boolean isCopyMessage()Whether to make a copy of the message in theMessageHistory
. 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. -
setCopyMessage
void setCopyMessage(boolean copyMessage) Sets whether to make a copy of the message in theMessageHistory
. 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. -
getNodePattern
String getNodePattern()An optional pattern to filter which nodes to trace in this message history. By default all nodes are included. To only include nodes that are Step EIPs then use the EIP shortname, eg step. You can also include multiple nodes separated by comma, eg step,wiretap,to -
setNodePattern
An optional pattern to filter which nodes to trace in this message history. By default all nodes are included. To only include nodes that are Step EIPs then use the EIP shortname, eg step. You can also include multiple nodes separated by comma, eg step,wiretap,to
-