Skip navigation links
then-api 0.2.0
A C D E F I L O P R 

A

asCallable() - Method in interface io.machinecode.then.api.ExecutablePromise
 
asRunnable() - Method in interface io.machinecode.then.api.ExecutablePromise
 

C

cancel(boolean) - Method in interface io.machinecode.then.api.OnCancel
 
cancel(boolean) - Method in interface io.machinecode.then.api.Promise
Called to attempt to stop the computation.
CANCELLED - Static variable in interface io.machinecode.then.api.Deferred
This is a terminal state indicating Promise.cancel(boolean) was the first terminal method called.
CancelledException - Exception in io.machinecode.then.api
 
CancelledException(String) - Constructor for exception io.machinecode.then.api.CancelledException
 
complete(int) - Method in interface io.machinecode.then.api.OnComplete
 
CompletionException - Exception in io.machinecode.then.api
 
CompletionException(String) - Constructor for exception io.machinecode.then.api.CompletionException
 

D

Deferred<T,F,P> - Interface in io.machinecode.then.api
A representation of a computation allowing listeners to be notified of state changes.

E

ExecutablePromise<T,F,P> - Interface in io.machinecode.then.api
A Promise that exposes a computational task suitable for execution by an ExecutorService.

F

FailureException - Exception in io.machinecode.then.api
 
FailureException(String, Object) - Constructor for exception io.machinecode.then.api.FailureException
 

I

io.machinecode.then.api - package io.machinecode.then.api
API of Then promises library.
isCancelled() - Method in interface io.machinecode.then.api.Promise
 
isDone() - Method in interface io.machinecode.then.api.Promise
 
isRejected() - Method in interface io.machinecode.then.api.Promise
 
isResolved() - Method in interface io.machinecode.then.api.Promise
 

L

ListenerException - Exception in io.machinecode.then.api
 
ListenerException(String, Throwable) - Constructor for exception io.machinecode.then.api.ListenerException
 
ListenerException(Throwable) - Constructor for exception io.machinecode.then.api.ListenerException
 

O

onCancel(OnCancel) - Method in interface io.machinecode.then.api.Deferred
Triggered when Promise.cancel(boolean) is the first terminal method called.
OnCancel - Interface in io.machinecode.then.api
Listener for a Promise entering a Deferred.CANCELLED terminal state.
onCancel(OnCancel) - Method in interface io.machinecode.then.api.Promise
Triggered when Promise.cancel(boolean) is the first terminal method called.
onComplete(OnComplete) - Method in interface io.machinecode.then.api.Deferred
Triggered on any event after which Promise.isDone() will return true.
OnComplete - Interface in io.machinecode.then.api
Listener for a Deferred entering a state where Promise.isDone() returns true.
onComplete(OnComplete) - Method in interface io.machinecode.then.api.Promise
Triggered on any event after which Promise.isDone() will return true.
onGet(Future<?>) - Method in interface io.machinecode.then.api.Deferred
onGet(Future<?>) - Method in interface io.machinecode.then.api.Promise
onProgress(OnProgress<P>) - Method in interface io.machinecode.then.api.Deferred
Triggered when Deferred.progress(Object) is called.
OnProgress<P> - Interface in io.machinecode.then.api
onProgress(OnProgress<P>) - Method in interface io.machinecode.then.api.Promise
Triggered when Deferred.progress(Object) is called.
onReject(OnReject<F>) - Method in interface io.machinecode.then.api.Deferred
Triggered when Deferred.reject(Object) is the first terminal method called.
OnReject<F> - Interface in io.machinecode.then.api
Listener for a Deferred entering a Deferred.REJECTED state.
onReject(OnReject<F>) - Method in interface io.machinecode.then.api.Promise
Triggered when Deferred.reject(Object) is the first terminal method called.
onResolve(OnResolve<T>) - Method in interface io.machinecode.then.api.Deferred
Triggered when Deferred.resolve(Object) is the first terminal method called.
OnResolve<T> - Interface in io.machinecode.then.api
Listener for a Deferred entering a Deferred.RESOLVED state.
onResolve(OnResolve<T>) - Method in interface io.machinecode.then.api.Promise
Triggered when Deferred.resolve(Object) is the first terminal method called.

P

PENDING - Static variable in interface io.machinecode.then.api.Deferred
This is a transient state indicating no terminal method has yet been called.
progress(P) - Method in interface io.machinecode.then.api.Deferred
Called to notify listeners that the some work has been done in the computation.
progress(P) - Method in interface io.machinecode.then.api.OnProgress
 
promise() - Method in interface io.machinecode.then.api.Deferred
Produces a readonly view of this Deferred.
Promise<T,F,P> - Interface in io.machinecode.then.api
A read-only representation of a Deferred allowing listeners to be notified of state changes, though clients are allowed to attempt to stop the computation using Promise.cancel(boolean).

R

reject(F) - Method in interface io.machinecode.then.api.Deferred
Called to indicate the failure of the computation this promise represents.
reject(F) - Method in interface io.machinecode.then.api.OnReject
 
REJECTED - Static variable in interface io.machinecode.then.api.Deferred
This is a terminal state indicating Deferred.reject(Object) was the first terminal method called.
RejectedException - Exception in io.machinecode.then.api
 
RejectedException(String) - Constructor for exception io.machinecode.then.api.RejectedException
 
resolve(T) - Method in interface io.machinecode.then.api.Deferred
Called to indicate the successful completion of the computation this deferred represents.
resolve(T) - Method in interface io.machinecode.then.api.OnResolve
 
RESOLVED - Static variable in interface io.machinecode.then.api.Deferred
This is a terminal state indicating Deferred.resolve(Object) was the first terminal method called.
ResolvedException - Exception in io.machinecode.then.api
 
ResolvedException(String) - Constructor for exception io.machinecode.then.api.ResolvedException
 
A C D E F I L O P R 
Skip navigation links
then-api 0.2.0

Copyright © 2014 MachineCode. All rights reserved.