Interface Timer<I>

Type Parameters:
I - the timer identifier type
All Known Subinterfaces:
ScheduledTimer<I>

public interface Timer<I>
Describes the properties of a timer, and its controlling mechanisms.
Author:
Paul Ferraro
  • Method Details

    • getId

      I getId()
    • getMetaData

      ImmutableTimerMetaData getMetaData()
    • isActive

      boolean isActive()
    • isCanceled

      boolean isCanceled()
    • cancel

      void cancel()
    • invoke

      void invoke() throws Exception
      Throws:
      Exception
    • activate

      void activate()
    • suspend

      void suspend()