Interface CacheEntryScheduler<I,M>

Type Parameters:
I - the identifier type of scheduled entries
M - the meta data type
All Superinterfaces:
AutoCloseable, 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
  • 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.scheduler.Scheduler

    cancel, close, 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