Name
ScheduledFuture<V>
Synopsis
This interface extends
Future
and Delayed
and adds no methods of its own. A
ScheduledFuture
represents a computation and the
future result of that computation just as Future
does, but it adds a getDelay( )
method that
returns the amount of time until the computation begins. See
ScheduledExecutorService
.
Figure 16-90. java.util.concurrent.ScheduledFuture<V>
public interface ScheduledFuture<V> extends DelayedFuture<V> {
}
Returned By
ScheduledExecutorService.{schedule( )
,
scheduleAtFixedRate( )
,
scheduleWithFixedDelay( )}
,
ScheduledThreadPoolExecutor.{schedule( )
,
scheduleAtFixedRate( )
,
scheduleWithFixedDelay( )}
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.