Interface CacheEntryScheduler<I,M>

All Superinterfaces:
AutoCloseable, org.wildfly.clustering.server.Registration, org.wildfly.clustering.server.scheduler.Scheduler<I,M>
All Known Implementing Classes:
AbstractCacheEntryScheduler, AbstractExpirationScheduler

public interface CacheEntryScheduler<I,M> extends org.wildfly.clustering.server.scheduler.Scheduler<I,M>
A task scheduler.
Author:
Paul Ferraro
  • Field Summary

    Fields inherited from interface org.wildfly.clustering.server.Registration

    EMPTY
  • Method Summary

    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.server.Registration

    close

    Methods inherited from interface org.wildfly.clustering.server.scheduler.Scheduler

    cancel, contains, schedule, stream
  • Method Details

    • 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:
      locality - the cache locality