ScheduledFuture

  • ScheduledFuture represents a delayed result-bearing action that can be cancelled, typically used for scheduling tasks.

  • It extends the Delayed and Future interfaces, providing methods to manage delays, cancellation, and retrieval of results.

  • ScheduledExecutorService is commonly used to create and manage instances of ScheduledFuture.

  • The interface includes methods inherited from Delayed, Future, and Comparable for comprehensive task management.

public interface ScheduledFuture implements Delayed Future<V>
Known Indirect Subclasses

A delayed result-bearing action that can be cancelled. Usually a scheduled future is the result of scheduling a task with a ScheduledExecutorService.

Inherited Method Summary