Interface Scheduler<I,M>
- All Superinterfaces:
AutoCloseable,Registration
A task scheduler.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionvoidCancels a previously scheduled task for the object with the specified identifier.default booleanIndicates whether the object with the specified identifier is scheduled.voidSchedules a task for the object with the specified identifier, using the specified metaDatastream()Returns a stream of scheduled item identifiers.Methods inherited from interface org.wildfly.clustering.server.Registration
close
-
Method Details
-
schedule
Schedules a task for the object with the specified identifier, using the specified metaData- Parameters:
id- an object identifiermetaData- the object meta-data
-
cancel
Cancels a previously scheduled task for the object with the specified identifier.- Parameters:
id- an object identifier
-
stream
Returns a stream of scheduled item identifiers.- Returns:
- a stream of scheduled item identifiers.
-
contains
Indicates whether the object with the specified identifier is scheduled.- Parameters:
id- an object identifier
-