Package com.hazelcast.scheduledexecutor
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
-
ClassDescriptionThe
AutoDisposableTask
interface should be implemented by any single run task which is to be destroyed automatically after executionAn exception thrown when a task's name is already used before for another (or the same, if re-attempted) schedule.Distributed & durable implementation similar to, but not directly inheritedScheduledExecutorService
.A delayed result-bearing action that can be cancelled.TheNamedTask
interface should be implemented by any task that needs to have an identification and enhanced atomicity upon scheduling the task.Resource handler pointing to aIScheduledFuture
.Statistics and timing info for aIScheduledFuture
accessible throughIScheduledFuture.getStats()
Exception thrown by theIScheduledFuture
during any operation on a stale (=previously destroyed) task.StatefulTask<K,V> An interface to provide means for saving & loading state forRunnable
andCallable
tasks scheduled with anIScheduledExecutorService
.