public class

DefaultSerialExecutorService

extends ConstrainedExecutorService
implements SerialExecutorService
java.lang.Object
   ↳ java.util.concurrent.AbstractExecutorService
     ↳ com.facebook.common.executors.ConstrainedExecutorService
       ↳ com.facebook.common.executors.DefaultSerialExecutorService

Class Overview

Default implementation of SerialExecutorService that wraps an existing Executor.

Summary

Public Constructors
DefaultSerialExecutorService(Executor executor)
Public Methods
synchronized void execute(Runnable runnable)
Synchronized override of execute(Runnable) to ensure that view of memory is consistent between different threads executing tasks serially.
[Expand]
Inherited Methods
From class com.facebook.common.executors.ConstrainedExecutorService
From class java.util.concurrent.AbstractExecutorService
From class java.lang.Object
From interface java.util.concurrent.Executor
From interface java.util.concurrent.ExecutorService

Public Constructors

public DefaultSerialExecutorService (Executor executor)

Public Methods

public synchronized void execute (Runnable runnable)

Synchronized override of execute(Runnable) to ensure that view of memory is consistent between different threads executing tasks serially.

Parameters
runnable The task to be executed.