Class LocalScheduler<T>
java.lang.Object
org.wildfly.clustering.server.local.scheduler.LocalScheduler<T>
- Type Parameters:
T- the scheduled entry identifier type
- All Implemented Interfaces:
AutoCloseable,Runnable,Scheduler<T,Instant>
Scheduler that uses a single scheduled task in concert with a
ScheduledEntries.- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCancels a previously scheduled task for the object with the specified identifier.voidclose()booleanIndicates whether the entry with the specified identifier is scheduled.voidrun()voidSchedules a task for the object with the specified identifier, using the specified metaDatastream()Returns a stream of scheduled item identifiers.toString()
-
Constructor Details
-
LocalScheduler
-
-
Method Details
-
schedule
Description copied from interface:SchedulerSchedules a task for the object with the specified identifier, using the specified metaData -
cancel
Description copied from interface:SchedulerCancels a previously scheduled task for the object with the specified identifier. -
contains
Description copied from interface:SchedulerIndicates whether the entry with the specified identifier is scheduled. -
stream
Description copied from interface:SchedulerReturns a stream of scheduled item identifiers. -
close
public void close() -
run
public void run() -
toString
-