Interface EventClock<T extends Enum<T>>

Type Parameters:
T - The event type as an Enum
All Superinterfaces:
Clock
All Known Implementing Classes:
ContextClock

public interface EventClock<T extends Enum<T>> extends Clock
A specialized clock that tracks the pass of time for one or more types of events
  • Method Details

    • add

      void add(T event, Clock clock)
      Add the event to be tracked
      Parameters:
      event - the event to track
      clock - the clock associated with the event
    • get

      Clock get(T event)
      Get the clock for the event
      Parameters:
      event - the event to get the clock for
      Returns:
      the clock instance or null if not set