Class AbstractCacheEntryScheduler<I,M>

java.lang.Object
org.wildfly.clustering.server.infinispan.scheduler.AbstractCacheEntryScheduler<I,M>
Type Parameters:
I - the identifier type of scheduled entries
M - the meta data type
All Implemented Interfaces:
AutoCloseable, CacheEntryScheduler<I,M>, Scheduler<I,M>
Direct Known Subclasses:
AbstractExpirationScheduler

public abstract class AbstractCacheEntryScheduler<I,M> extends Object implements CacheEntryScheduler<I,M>
Abstract CacheEntryScheduler that delegates to a local scheduler.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • schedule

      public void schedule(I id, M metaData)
      Description copied from interface: Scheduler
      Schedules a task for the object with the specified identifier, using the specified metaData
      Specified by:
      schedule in interface Scheduler<I,M>
      Parameters:
      id - an object identifier
      metaData - the object meta-data
    • cancel

      public void cancel(I id)
      Description copied from interface: Scheduler
      Cancels a previously scheduled task for the object with the specified identifier.
      Specified by:
      cancel in interface Scheduler<I,M>
      Parameters:
      id - an object identifier
    • cancel

      public void cancel(Locality locality)
      Description copied from interface: CacheEntryScheduler
      Cancels any previous scheduled tasks for entries which are no longer local to the current node
      Specified by:
      cancel in interface CacheEntryScheduler<I,M>
      Parameters:
      locality - the cache locality
    • stream

      public Stream<I> stream()
      Description copied from interface: Scheduler
      Returns a stream of scheduled item identifiers.
      Specified by:
      stream in interface Scheduler<I,M>
      Returns:
      a stream of scheduled item identifiers.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Scheduler<I,M>
    • toString

      public String toString()
      Overrides:
      toString in class Object