org.apache.camel.impl
Class DefaultMessageHistory

java.lang.Object
  extended by org.apache.camel.impl.DefaultMessageHistory
All Implemented Interfaces:
MessageHistory

public class DefaultMessageHistory
extends Object
implements MessageHistory


Constructor Summary
DefaultMessageHistory(String routeId, NamedNode node, Date timestamp)
           
 
Method Summary
 long getElapsed()
          Gets the elapsed time in millis processing the node took
 NamedNode getNode()
          Gets the node at the point of this history.
 String getRouteId()
          Gets the route id at the point of this history.
 Date getTimestamp()
          Gets the timestamp at the point of this history.
 void nodeProcessingDone()
          Used for signalling that processing of the node is done.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMessageHistory

public DefaultMessageHistory(String routeId,
                             NamedNode node,
                             Date timestamp)
Method Detail

getRouteId

public String getRouteId()
Description copied from interface: MessageHistory
Gets the route id at the point of this history.

Specified by:
getRouteId in interface MessageHistory

getNode

public NamedNode getNode()
Description copied from interface: MessageHistory
Gets the node at the point of this history.

Specified by:
getNode in interface MessageHistory

getTimestamp

public Date getTimestamp()
Description copied from interface: MessageHistory
Gets the timestamp at the point of this history.

Specified by:
getTimestamp in interface MessageHistory

getElapsed

public long getElapsed()
Description copied from interface: MessageHistory
Gets the elapsed time in millis processing the node took

Specified by:
getElapsed in interface MessageHistory

nodeProcessingDone

public void nodeProcessingDone()
Description copied from interface: MessageHistory
Used for signalling that processing of the node is done.

Specified by:
nodeProcessingDone in interface MessageHistory

toString

public String toString()
Overrides:
toString in class Object


Apache Camel