Class LocalSchedulerService<K>
java.lang.Object
org.wildfly.clustering.server.service.SimpleService
org.wildfly.clustering.server.local.scheduler.LocalSchedulerService<K>
- Type Parameters:
K- the scheduled entry key type
- All Implemented Interfaces:
AutoCloseable, Runnable, org.wildfly.clustering.server.scheduler.Scheduler<K,Instant>, org.wildfly.clustering.server.scheduler.SchedulerService<K, Instant>, org.wildfly.clustering.server.service.Service
public class LocalSchedulerService<K>
extends org.wildfly.clustering.server.service.SimpleService
implements org.wildfly.clustering.server.scheduler.SchedulerService<K,Instant>, Runnable
Scheduler that uses a single scheduled task in concert with a
ScheduledEntries.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceEncapsulates configuration of aLocalSchedulerService. -
Constructor Summary
ConstructorsConstructorDescriptionLocalSchedulerService(LocalSchedulerService.Configuration<K> configuration) Creates a local scheduler using the specified configuration. -
Method Summary
Methods inherited from class org.wildfly.clustering.server.service.SimpleService
isStartedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
Constructor Details
-
LocalSchedulerService
Creates a local scheduler using the specified configuration.- Parameters:
configuration- the scheduler configuration
-
-
Method Details
-
schedule
-
cancel
-
contains
-
start
public void start()- Specified by:
startin interfaceorg.wildfly.clustering.server.service.Service- Overrides:
startin classorg.wildfly.clustering.server.service.SimpleService
-
stop
public void stop()- Specified by:
stopin interfaceorg.wildfly.clustering.server.service.Service- Overrides:
stopin classorg.wildfly.clustering.server.service.SimpleService
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.server.scheduler.SchedulerService<K,Instant>
-
run
-
toString
-