Interface CacheEntryScheduler<I,​M>

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

    public interface CacheEntryScheduler<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 entries which are no longer local to the current node
      void schedule​(I id)
      Schedules a cache entry with the specified identifier.
      • Methods inherited from interface org.wildfly.clustering.ee.Scheduler

        cancel, close, contains, schedule, stream
    • Method Detail

      • schedule

        void schedule​(I id)
        Schedules a cache entry with the specified identifier. This method will generally delegate to Scheduler.schedule(Object, Object) after performing a cache lookup.
        Parameters:
        id - the identifier of the object to be scheduled
      • cancel

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