Interface MessageHistoryFactory

All Superinterfaces:
AutoCloseable, CamelContextAware, HasCamelContext, Service, StaticService

public interface MessageHistoryFactory extends StaticService, CamelContextAware
A factory to create MessageHistory instances.
  • Method Details

    • newMessageHistory

      MessageHistory newMessageHistory(String routeId, NamedNode node, long timestamp, Exchange exchange)
      Creates a new MessageHistory
      Parameters:
      routeId - the route id
      node - the node in the route
      timestamp - 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 the 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.
    • setCopyMessage

      void setCopyMessage(boolean copyMessage)
      Sets whether to make a copy of the message in the 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.
    • 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

      void setNodePattern(String nodePattern)
      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