public class

ScheduledFutureImpl

extends Object
implements RunnableFuture<V> ScheduledFuture<V>
java.lang.Object
   ↳ com.facebook.common.executors.ScheduledFutureImpl<V>

Class Overview

A ScheduledFuture for HandlerExecutorServiceImpl.

Summary

Public Constructors
ScheduledFutureImpl(Handler handler, Callable<V> callable)
ScheduledFutureImpl(Handler handler, Runnable runnable, V result)
Public Methods
boolean cancel(boolean mayInterruptIfRunning)
int compareTo(Delayed other)
V get(long timeout, TimeUnit unit)
V get()
long getDelay(TimeUnit unit)
boolean isCancelled()
boolean isDone()
void run()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable
From interface java.lang.Runnable
From interface java.util.concurrent.Delayed
From interface java.util.concurrent.Future
From interface java.util.concurrent.RunnableFuture

Public Constructors

public ScheduledFutureImpl (Handler handler, Callable<V> callable)

public ScheduledFutureImpl (Handler handler, Runnable runnable, V result)

Public Methods

public boolean cancel (boolean mayInterruptIfRunning)

public int compareTo (Delayed other)

public V get (long timeout, TimeUnit unit)

Throws
ExecutionException
InterruptedException
TimeoutException

public V get ()

Throws
ExecutionException
InterruptedException

public long getDelay (TimeUnit unit)

public boolean isCancelled ()

public boolean isDone ()

public void run ()