Class PrimaryOwnerSchedulerService<K,V>

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

public class PrimaryOwnerSchedulerService<K,V> extends org.wildfly.clustering.server.scheduler.DecoratedSchedulerService<K,V>
Scheduler decorator that schedules/cancels a given object on the primary owner.
Author:
Paul Ferraro
  • Constructor Details

    • PrimaryOwnerSchedulerService

      public <SE,CE> PrimaryOwnerSchedulerService(PrimaryOwnerSchedulerService.Configuration<K,V,SE,CE> configuration)
      Creates a primary owner scheduler from the specified configuration.
      Type Parameters:
      SE - the schedule task entry type
      CE - the cancel task entry type
      Parameters:
      configuration - the configuration of a primary owner scheduler
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.wildfly.clustering.server.scheduler.SchedulerService<K,V>
      Overrides:
      close in class org.wildfly.clustering.server.scheduler.DecoratedSchedulerService<K,V>
    • schedule

      public void schedule(K id, V metaData)
      Specified by:
      schedule in interface org.wildfly.clustering.server.scheduler.Scheduler<K,V>
      Overrides:
      schedule in class org.wildfly.clustering.server.scheduler.DecoratedSchedulerService<K,V>
    • cancel

      public void cancel(K id)
      Specified by:
      cancel in interface org.wildfly.clustering.server.scheduler.Scheduler<K,V>
      Overrides:
      cancel in class org.wildfly.clustering.server.scheduler.DecoratedSchedulerService<K,V>
    • contains

      public boolean contains(K id)
      Specified by:
      contains in interface org.wildfly.clustering.server.scheduler.Scheduler<K,V>
      Overrides:
      contains in class org.wildfly.clustering.server.scheduler.DecoratedSchedulerService<K,V>