Interface Scheduler<I,​M>

  • All Superinterfaces:
    AutoCloseable, org.wildfly.clustering.ee.Scheduler<I,​M>

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cancel​(Locality locality)
      Cancels any previous scheduled tasks for session which are no longer local to the current node
      void schedule​(I id)
      Schedules an object with the specified identifier.
      • Methods inherited from interface org.wildfly.clustering.ee.Scheduler

        cancel, close, schedule
    • Method Detail

      • schedule

        void schedule​(I id)
        Schedules an object with the specified identifier.
        Parameters:
        id - the identifier of the object to be scheduled
      • cancel

        void cancel​(Locality locality)
        Cancels any previous scheduled tasks for session which are no longer local to the current node
        Parameters:
        location - the cache locality