Interface CacheEntryScheduler<I,K extends org.wildfly.clustering.cache.Key<I>,V,M>

Type Parameters:
I - the scheduled entry identifier type
K - the cache entry key type
V - the cache entry value type
M - the scheduled entry metadata type
All Superinterfaces:
AutoCloseable, Scheduler<I,M>, org.wildfly.clustering.server.scheduler.Scheduler<I,M>
All Known Implementing Classes:
AbstractCacheEntryScheduler, CacheEntryScheduler.InactiveCacheEntryScheduler, CacheEntryScheduler.ReferenceCacheEntryScheduler

public interface CacheEntryScheduler<I,K extends org.wildfly.clustering.cache.Key<I>,V,M> extends Scheduler<I,M>
A task scheduler.
Author:
Paul Ferraro
  • Method Details

    • schedule

      void schedule(Map.Entry<K,V> entry)
      Schedules a cache entry.
      Parameters:
      entry - a cache entry
    • inactive

      static <I, K extends org.wildfly.clustering.cache.Key<I>, V, M> CacheEntryScheduler<I,K,V,M> inactive()
      Returns an inactive scheduler instance.
      Type Parameters:
      I - the scheduled object identifier type
      K - the cache entry key type
      V - the cache entry value type
      M - the scheduled object metadata type
      Returns:
      an inactive scheduler instance.
    • fromReference

      static <I, K extends org.wildfly.clustering.cache.Key<I>, V, M> CacheEntryScheduler<I,K,V,M> fromReference(Supplier<? extends CacheEntryScheduler<I,K,V,M>> reference)
      Returns a scheduler that delegates to a scheduler reference.
      Type Parameters:
      I - the scheduled object identifier type
      K - the cache entry key type
      V - the cache entry value type
      M - the scheduled object metadata type
      Parameters:
      reference - a scheduler reference
      Returns:
      a scheduler that delegates to a scheduler reference.