V- The result type returned by this Future
public interface IScheduledFuture<V> extends ScheduledFuture<V>
IScheduledExecutorService. Enhances the default
ScheduledFutureAPI with support of statistics and time measurement info, through
|Modifier and Type||Method and Description|
Attempts to cancel further scheduling of this task.
Used to destroy the instance of the
Returns the scheduled future resource handler.
Returns the statistics and time measurement info of the execution of this scheduled future in the
get, get, isCancelled, isDone
ScheduledTaskHandler, a resource handler for this scheduled future.
IScheduledExecutorServiceit was scheduled.
ScheduledTaskStatistics, holding all stas and measurements
IScheduledFuturein the scheduled executor. Once the instance is destroyed, any subsequent action on the
IScheduledFuturewill fail with an
IllegalStateExceptionAttempting to re-create the
getHandler()will succeed, but any subsequent access on that new future, will also fail with
boolean cancel(boolean mayInterruptIfRunning)
cancelis called, this task should never run.
Warning: This cancel will not attempt to interrupt the running thread if the task is already in progress, will just cancel further scheduling.
After this method returns, subsequent calls to
Future.isDone() will always return
true. Subsequent calls to
Future.isCancelled() will always return
true if this method returned
mayInterruptIfRunning- is throwing
falseif the task could not be cancelled, typically because it has already completed normally;
Copyright © 2022 Hazelcast, Inc.. All rights reserved.