Package com.hazelcast.scheduledexecutor
This package contains ScheduledExecutorService functionality for Hazelcast.
The ScheduledExecutorService provides functionality similar to ExecutorService
and also additional methods like executing tasks on a member who is owner of a specific key.
ScheduledExecutorService also provides a way to find the IScheduledFuture
at any point in time using the ScheduledTaskHandler
accessible through
IScheduledFuture.getHandler()
- Since:
- 3.8
-
Interface Summary Interface Description AutoDisposableTask TheAutoDisposableTask
interface should be implemented by any single run task which is to be destroyed automatically after executionIScheduledExecutorService Distributed & durable implementation similar to, but not directly inheritedScheduledExecutorService
.IScheduledFuture<V> A delayed result-bearing action that can be cancelled.NamedTask TheNamedTask
interface should be implemented by any task that needs to have an identification and enhanced atomicity upon scheduling the task.ScheduledTaskStatistics Statistics and timing info for aIScheduledFuture
accessible throughIScheduledFuture.getStats()
StatefulTask<K,V> An interface to provide means for saving & loading state forRunnable
andCallable
tasks scheduled with anIScheduledExecutorService
. -
Class Summary Class Description ScheduledTaskHandler Resource handler pointing to aIScheduledFuture
.TaskUtils A helper class with utilities to act uponRunnable
and/orCallable
tasks. -
Exception Summary Exception Description DuplicateTaskException An exception thrown when a task's name is already used before for another (or the same, if re-attempted) schedule.StaleTaskException Exception thrown by theIScheduledFuture
during any operation on a stale (=previously destroyed) task.