Interface SchedulerService<K,V>

Type Parameters:
K - the scheduled entry identifier type
V - the scheduled entry value type
All Superinterfaces:
AutoCloseable, Scheduler<K,V>, Service
All Known Implementing Classes:
DecoratedSchedulerService

public interface SchedulerService<K,V> extends Scheduler<K,V>, Service, AutoCloseable
A restartable scheduler.
Author:
Paul Ferraro
  • Method Details

    • compose

      default <KK,VV> SchedulerService<KK,VV> compose(Function<KK,K> identifierMapper, Function<VV, Optional<V>> entryMapper)
      Returns a mapped scheduler.
      Type Parameters:
      KK - the mapped identifier type
      VV - the mapped value type
      Parameters:
      identifierMapper - the identifier mapping function
      entryMapper - the entry mapping function
      Returns:
      a mapped scheduler.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable