Skip navigation links
A B C D F I L O P R S T W 

A

abort() - Method in class com.airg.android.async.promise.AbstractPromise
Called when a cancel request is received and before the OnCancelListener#onCancelled() is called.
AbstractPromise<RESULT> - Class in com.airg.android.async.promise
Another implementation for Promise.
AbstractPromise() - Constructor for class com.airg.android.async.promise.AbstractPromise
Default constructor.
AbstractPromise(Executor) - Constructor for class com.airg.android.async.promise.AbstractPromise
Alternate constructor.
assertMainThread() - Static method in class com.airg.android.async.AsyncHelper
Ensures that the caller is running on the main thread
assertNotMainThread() - Static method in class com.airg.android.async.AsyncHelper
Ensures that the caller is not running on the main thread
AsyncHelper - Class in com.airg.android.async
Multi-thread utility methods
AsyncHelper() - Constructor for class com.airg.android.async.AsyncHelper
 

B

background() - Static method in class com.airg.android.async.ThreadPool
Get the background ExecutorService
backgroundThreadPriority(int) - Method in class com.airg.android.async.ThreadPool.Config.ConfigBuilder
Override the thread priority.
bg(Runnable) - Static method in class com.airg.android.async.ThreadPool
Submit a Runnable to be executed on a background thread
build() - Method in class com.airg.android.async.ThreadPool.Config.ConfigBuilder
Create the specified configuration parameters.
builder() - Static method in class com.airg.android.async.ThreadPool.Config

C

cancel() - Method in class com.airg.android.async.promise.AbstractPromise
Final method.
cancelled() - Method in class com.airg.android.async.promise.SimplePromise
Mark task as cancelled
com.airg.android.async - package com.airg.android.async
 
com.airg.android.async.promise - package com.airg.android.async.promise
 
Config() - Constructor for class com.airg.android.async.ThreadPool.Config
 

D

done() - Method in class com.airg.android.async.promise.FuturePromise
 

F

failed(Throwable) - Method in class com.airg.android.async.promise.SimplePromise
Mark task as failed and provide a cause
fg(Runnable) - Static method in class com.airg.android.async.ThreadPool
Submit a Runnable to be executed on the UI thread.
foreground() - Static method in class com.airg.android.async.ThreadPool
Get the foreground (UI Thread) Executor
FuturePromise<RESULT> - Class in com.airg.android.async.promise
A FutureTask that implements the Promise interface to provide completion, failure, and cancellation callbacks.
FuturePromise(Callable<RESULT>) - Constructor for class com.airg.android.async.promise.FuturePromise
Wrap a Callable
FuturePromise(Callable<RESULT>, Executor) - Constructor for class com.airg.android.async.promise.FuturePromise
Wrap a Callable and provide an Executor for the callbacks.
FuturePromise(Runnable, RESULT) - Constructor for class com.airg.android.async.promise.FuturePromise
Wrap a Runnable
FuturePromise(Runnable, RESULT, Executor) - Constructor for class com.airg.android.async.promise.FuturePromise
Wrap a Runnable and provide an Executor for the callbacks.

I

init(ThreadPool.Config) - Static method in class com.airg.android.async.ThreadPool
Initialize the Threadpool with non-default values.
isCancelled() - Method in class com.airg.android.async.promise.AbstractPromise
isCancelled() - Method in interface com.airg.android.async.promise.Promise
Is the task cancelled?
isCancelled() - Method in class com.airg.android.async.promise.SimplePromise
Was the task cancelled?
isDone() - Method in class com.airg.android.async.promise.AbstractPromise
isDone() - Method in interface com.airg.android.async.promise.Promise
Are we there yet?
isDone() - Method in class com.airg.android.async.promise.SimplePromise
Are we there yet?
isFailed() - Method in class com.airg.android.async.promise.AbstractPromise
isFailed() - Method in class com.airg.android.async.promise.FuturePromise
isFailed() - Method in interface com.airg.android.async.promise.Promise
Did you keep your promise?
isFailed() - Method in class com.airg.android.async.promise.SimplePromise
Did the task fail?
isMainThread() - Static method in class com.airg.android.async.AsyncHelper
Is the calling code running on the main (UI) thread or a background (worker) thread?

L

LOG - Static variable in class com.airg.android.async.promise.AbstractPromise
 

O

onCancel(Promise.OnCancelListener) - Method in class com.airg.android.async.promise.AbstractPromise
onCancel(Promise.OnCancelListener) - Method in class com.airg.android.async.promise.FuturePromise
onCancel(Promise.OnCancelListener) - Method in interface com.airg.android.async.promise.Promise
Add an Promise.OnCancelListener callback to be notified on cancellation
onCancel(Promise.OnCancelListener) - Method in class com.airg.android.async.promise.SimplePromise
Set cancellation callback
onCancelled() - Method in interface com.airg.android.async.promise.Promise.OnCancelListener
Task was cancelled
onComplete(Promise.OnCompleteListener<RESULT>) - Method in class com.airg.android.async.promise.AbstractPromise
onComplete(Promise.OnCompleteListener<RESULT>) - Method in class com.airg.android.async.promise.FuturePromise
onComplete(Promise.OnCompleteListener<RESULT>) - Method in interface com.airg.android.async.promise.Promise
Add an Promise.OnCompleteListener callback to be notified of completion
onComplete(RESULT) - Method in interface com.airg.android.async.promise.Promise.OnCompleteListener
Task completed
onComplete(Promise.OnCompleteListener<RESULT>) - Method in class com.airg.android.async.promise.SimplePromise
Set completion callback
onFail(Promise.OnFailListener) - Method in class com.airg.android.async.promise.AbstractPromise
onFail(Promise.OnFailListener) - Method in class com.airg.android.async.promise.FuturePromise
onFail(Promise.OnFailListener) - Method in interface com.airg.android.async.promise.Promise
Add an Promise.OnFailListener callback to be notified on failure
onFail(Promise.OnFailListener) - Method in class com.airg.android.async.promise.SimplePromise
Set failure callback
onFailed(Throwable) - Method in interface com.airg.android.async.promise.Promise.OnFailListener
Task failed
overridePoolSize(int) - Method in class com.airg.android.async.ThreadPool.Config.ConfigBuilder
Use a custom thread pool size

P

Promise<RESULT> - Interface in com.airg.android.async.promise
The Promise interface is very similar to a Future, but it provides callbacks for completion, failure, and cancellation
Promise.OnCancelListener - Interface in com.airg.android.async.promise
Task cancellation callback
Promise.OnCompleteListener<RESULT> - Interface in com.airg.android.async.promise
Task completion callback
Promise.OnFailListener - Interface in com.airg.android.async.promise
Task failure callback

R

result() - Method in class com.airg.android.async.promise.AbstractPromise
Obtain the result for this task.
run() - Method in class com.airg.android.async.promise.AbstractPromise
Final method.

S

SimplePromise<RESULT> - Class in com.airg.android.async.promise
An implementation of Promise that can be retrofitted into any asynchronous flow: Instantiate a SimplePromise Interact with the SimplePromise instance in your runnable running in the background Return the instantiated SimplePromise in the calling thread
SimplePromise() - Constructor for class com.airg.android.async.promise.SimplePromise
 
SimplePromise(Executor) - Constructor for class com.airg.android.async.promise.SimplePromise
 
submit(Runnable) - Static method in class com.airg.android.async.ThreadPool
Executes a Runnable on the background thread.
submit(Callable<T>) - Static method in class com.airg.android.async.ThreadPool
Executes a Runnable on the background thread.
submit(Runnable, T) - Static method in class com.airg.android.async.ThreadPool
Executes a Runnable on the background thread.
succeeded() - Method in class com.airg.android.async.promise.AbstractPromise
succeeded() - Method in class com.airg.android.async.promise.FuturePromise
Was the promise successfully completed?
succeeded() - Method in interface com.airg.android.async.promise.Promise
Was the promise successfully completed?
succeeded() - Method in class com.airg.android.async.promise.SimplePromise
Was the promise successfully completed?
success(RESULT) - Method in class com.airg.android.async.promise.SimplePromise
Report task result and mark task as done

T

ThreadPool - Class in com.airg.android.async
This class contains an Executor that executes code on the UI Thread and an ExecutorService that allows for code to be executed on a background thread via a Threadpool.
ThreadPool() - Constructor for class com.airg.android.async.ThreadPool
 
ThreadPool.Config - Class in com.airg.android.async
Threadpool configuration.
ThreadPool.Config.ConfigBuilder - Class in com.airg.android.async
Threadpool ThreadPool.Config builder.

W

workerThreadNamePrefix(String) - Method in class com.airg.android.async.ThreadPool.Config.ConfigBuilder
The thread name prefix for the worker threads.
A B C D F I L O P R S T W 
Skip navigation links