Class DecoratedSchedulerService<K,V>

java.lang.Object
org.wildfly.clustering.server.service.DecoratedService
org.wildfly.clustering.server.scheduler.DecoratedSchedulerService<K,V>
Type Parameters:
K - the scheduled entry key type
V - the scheduled entry value type
All Implemented Interfaces:
AutoCloseable, Scheduler<K,V>, SchedulerService<K,V>, Service

public class DecoratedSchedulerService<K,V> extends DecoratedService implements SchedulerService<K,V>
A scheduler service decorator.
Author:
Paul Ferraro
  • Constructor Details

    • DecoratedSchedulerService

      public DecoratedSchedulerService(SchedulerService<K,V> scheduler)
      Creates a decorated scheduler service.
      Parameters:
      scheduler - the decorated scheduler service.
  • Method Details

    • schedule

      public void schedule(K key, V value)
      Description copied from interface: Scheduler
      Schedules a task for the specified entry.
      Specified by:
      schedule in interface Scheduler<K,V>
      Parameters:
      key - the scheduled entry key
      value - the scheduled entry value
    • cancel

      public void cancel(K key)
      Description copied from interface: Scheduler
      Cancels a previously scheduled task for the entry with the specified key.
      Specified by:
      cancel in interface Scheduler<K,V>
      Parameters:
      key - the scheduled entry key
    • contains

      public boolean contains(K key)
      Description copied from interface: Scheduler
      Indicates whether the entry with the specified key is scheduled.
      Specified by:
      contains in interface Scheduler<K,V>
      Parameters:
      key - the scheduled entry key
      Returns:
      true, if the specified entry is scheduled, false otherwise.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface SchedulerService<K,V>