Interface Scheduler<I,M>
- Type Parameters:
I- the scheduled entry identifier typeM- the scheduled entry metadata type
- All Superinterfaces:
AutoCloseable
A task scheduler.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoidCancels a previously scheduled task for the object with the specified identifier.voidclose()default booleanIndicates whether the entry 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.
-
Method Details
-
schedule
-
cancel
Cancels a previously scheduled task for the object with the specified identifier.- Parameters:
id- an object identifier
-
stream
-
contains
Indicates whether the entry with the specified identifier is scheduled.- Parameters:
id- an object identifier- Returns:
- true, if the specified entry is scheduled, false otherwise.
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-