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 typeV- 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 Summary
ConstructorsConstructorDescriptionDecoratedSchedulerService(SchedulerService<K, V> scheduler) Creates a decorated scheduler service. -
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
-
DecoratedSchedulerService
Creates a decorated scheduler service.- Parameters:
scheduler- the decorated scheduler service.
-
-
Method Details
-
schedule
-
cancel
-
contains
Description copied from interface:SchedulerIndicates whether the entry with the specified key is scheduled. -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSchedulerService<K,V>
-