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 typeV- 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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceEncapsulates configuration of aPrimaryOwnerSchedulerService. -
Constructor Summary
ConstructorsModifierConstructorDescription<SE,CE> PrimaryOwnerSchedulerService(PrimaryOwnerSchedulerService.Configuration<K, V, SE, CE> configuration) Creates a primary owner scheduler from the specified configuration. -
Method Summary
Methods inherited from class org.wildfly.clustering.server.service.DecoratedService
isStarted, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.server.scheduler.Scheduler
scheduleMethods inherited from interface org.wildfly.clustering.server.scheduler.SchedulerService
composeMethods inherited from interface org.wildfly.clustering.server.service.Service
isStarted, start, stop
-
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 typeCE- the cancel task entry type- Parameters:
configuration- the configuration of a primary owner scheduler
-
-
Method Details
-
close
-
schedule
-
cancel
-
contains
-