camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "s.marjanovic" <>
Subject Re: How to react when there is a fixed period of inactivity (no traffic) in a route?
Date Mon, 01 Jun 2015 10:26:35 GMT

I managed to get around the problem by using the statistics about the last
completed exchange and the elapsed time since last reset like this:

Date lastCompletedExchangeTimestamp = (Date)
.invoke(objectNameForRoute, "getLastExchangeCompletedTimestamp", null,

Date resetTimestamp = (Date)
"getResetTimestamp", null, null);

One small question though, I'm assuming that getResetTimestamp will give me
the time that camel context was initialized or the time of the last reset of
statistics (which doesn't concern me for now since statistics aren't being
reset manually yet).

Am I right with my assumption? Is there anything better to replace
getResetTimestamp with? I'm interested in obtaining camel context
initialization timestamp here and haven't had luck finding an alternative to


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message