Interface Scheduler<I,​M>

  • All Superinterfaces:
    AutoCloseable

    public interface Scheduler<I,​M>
    extends AutoCloseable
    A task scheduler.
    Author:
    Paul Ferraro
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cancel​(I id)
      Cancels a previously scheduled task for the object with the specified identifier.
      void close()
      Closes any resources used by this scheduler.
      void schedule​(I id, M metaData)
      Schedules a task for the object with the specified identifier, using the specified metaData
    • Method Detail

      • schedule

        void schedule​(I id,
                      M metaData)
        Schedules a task for the object with the specified identifier, using the specified metaData
        Parameters:
        id - an object identifier
        metaData - the object meta-data
      • cancel

        void cancel​(I id)
        Cancels a previously scheduled task for the object with the specified identifier.
        Parameters:
        id - an object identifier
      • close

        void close()
        Closes any resources used by this scheduler.
        Specified by:
        close in interface AutoCloseable