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, Scheduler<K,V>, SchedulerService<K, V>, Service
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
Modifier and TypeMethodDescriptionvoidCancels a previously scheduled task for the entry with the specified key.voidclose()booleanIndicates whether the entry with the specified key is scheduled.voidSchedules a task for the specified entry.Methods inherited from class DecoratedService
isStarted, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SchedulerService
compose
-
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
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSchedulerService<K,V> - Overrides:
closein classDecoratedSchedulerService<K,V>
-
schedule
Description copied from interface:SchedulerSchedules a task for the specified entry. -
cancel
-
contains
Description copied from interface:SchedulerIndicates whether the entry with the specified key is scheduled.
-