RunnableScheduledFuture

  • RunnableScheduledFuture combines the capabilities of RunnableFuture and ScheduledFuture, allowing tasks to be executed on a schedule.

  • Executing the run method marks the Future as complete and makes the results accessible.

  • The isPeriodic() method indicates whether the task is scheduled for repeated execution or a single run.

  • This interface inherits methods from RunnableFuture, ScheduledFuture, and other related interfaces, providing functionalities like cancellation, result retrieval, and delay management.

public interface RunnableScheduledFuture implements RunnableFuture<V> ScheduledFuture<V>

A ScheduledFuture that is Runnable. Successful execution of the run method causes completion of the Future and allows access to its results.

Public Method Summary

abstract boolean
isPeriodic()
Returns true if this task is periodic.

Inherited Method Summary

Public Methods

public abstract boolean isPeriodic ()

Returns true if this task is periodic. A periodic task may re-run according to some schedule. A non-periodic task can be run only once.

Returns
  • true if this task is periodic