Interface Scheduler<I,M>

Type Parameters:
I - the scheduled entry identifier type
M - the scheduled entry metadata type
All Superinterfaces:
AutoCloseable, Scheduler<I,M>
All Known Subinterfaces:
CacheEntryScheduler<I,K,V,M>
All Known Implementing Classes:
AbstractCacheEntryScheduler, CacheEntryScheduler.InactiveCacheEntryScheduler, CacheEntryScheduler.ReferenceCacheEntryScheduler, PrimaryOwnerScheduler, Scheduler.InactiveScheduler, Scheduler.ReferenceScheduler, SessionExpirationScheduler

public interface Scheduler<I,M> extends Scheduler<I,M>
Scheduler that does not require predetermined entry meta data.
Author:
Paul Ferraro
  • Method Details

    • schedule

      void schedule(I id)
      Schedules an entry for the specified identifier.
      Parameters:
      id - a scheduled entry identifier
    • inactive

      static <I, M> Scheduler<I,M> inactive()
      Returns an inactive scheduler instance.
      Type Parameters:
      I - the scheduled object identifier type
      M - the scheduled object metadata type
      Returns:
      an inactive scheduler instance.
    • fromReference

      static <I, M> Scheduler<I,M> fromReference(Supplier<? extends Scheduler<I,M>> reference)
      Returns a scheduler that delegates to a scheduler reference.
      Type Parameters:
      I - the scheduled object identifier type
      M - the scheduled object metadata type
      Parameters:
      reference - a scheduler reference
      Returns:
      a scheduler that delegates to a scheduler reference.