Package org.apache.camel.clock
Interface EventClock<T extends Enum<T>>
- Type Parameters:
T
- The event type as an Enum
- All Superinterfaces:
Clock
- All Known Implementing Classes:
ContextClock
A specialized clock that tracks the pass of time for one or more types of events
-
Method Summary
Methods inherited from interface org.apache.camel.clock.Clock
asDate, asDuration, asZonedCreationDateTime, elapsed, getCreated
-
Method Details
-
add
Add the event to be tracked- Parameters:
event
- the event to trackclock
- the clock associated with the event
-
get
Get the clock for the event- Parameters:
event
- the event to get the clock for- Returns:
- the clock instance or null if not set
-