public class

HandlerExecutorServiceImpl

extends AbstractExecutorService
implements HandlerExecutorService
java.lang.Object
   ↳ java.util.concurrent.AbstractExecutorService
     ↳ com.facebook.common.executors.HandlerExecutorServiceImpl
Known Direct Subclasses

Class Overview

A HandlerExecutorService implementation.

Summary

Public Constructors
HandlerExecutorServiceImpl(Handler handler)
Public Methods
boolean awaitTermination(long timeout, TimeUnit unit)
void execute(Runnable command)
boolean isHandlerThread()
Check if we are currently in the handler thread of this HandlerExecutorService.
boolean isShutdown()
boolean isTerminated()
void quit()
Quit the handler
<V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
void shutdown()
List<Runnable> shutdownNow()
ScheduledFuture<?> submit(Runnable task)
<T> ScheduledFuture<T> submit(Callable<T> task)
<T> ScheduledFuture<T> submit(Runnable task, T result)
Protected Methods
<T> ScheduledFutureImpl<T> newTaskFor(Runnable runnable, T value)
<T> ScheduledFutureImpl<T> newTaskFor(Callable<T> callable)
[Expand]
Inherited Methods
From class java.util.concurrent.AbstractExecutorService
From class java.lang.Object
From interface com.facebook.common.executors.HandlerExecutorService
From interface java.util.concurrent.Executor
From interface java.util.concurrent.ExecutorService
From interface java.util.concurrent.ScheduledExecutorService

Public Constructors

public HandlerExecutorServiceImpl (Handler handler)

Public Methods

public boolean awaitTermination (long timeout, TimeUnit unit)

Throws
InterruptedException

public void execute (Runnable command)

public boolean isHandlerThread ()

Check if we are currently in the handler thread of this HandlerExecutorService.

public boolean isShutdown ()

public boolean isTerminated ()

public void quit ()

Quit the handler

public ScheduledFuture<V> schedule (Callable<V> callable, long delay, TimeUnit unit)

public ScheduledFuture<?> schedule (Runnable command, long delay, TimeUnit unit)

public ScheduledFuture<?> scheduleAtFixedRate (Runnable command, long initialDelay, long period, TimeUnit unit)

public ScheduledFuture<?> scheduleWithFixedDelay (Runnable command, long initialDelay, long delay, TimeUnit unit)

public void shutdown ()

public List<Runnable> shutdownNow ()

public ScheduledFuture<?> submit (Runnable task)

public ScheduledFuture<T> submit (Callable<T> task)

public ScheduledFuture<T> submit (Runnable task, T result)

Protected Methods

protected ScheduledFutureImpl<T> newTaskFor (Runnable runnable, T value)

protected ScheduledFutureImpl<T> newTaskFor (Callable<T> callable)