Skip navigation links
then-api 0.3.0
C D F I L O P R T 

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.

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<? super 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<? super P>) - Method in interface io.machinecode.then.api.Promise
Triggered when Deferred.progress(Object) is called.
onReject(OnReject<? super 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<? super F>) - Method in interface io.machinecode.then.api.Promise
Triggered when Deferred.reject(Object) is the first terminal method called.
onResolve(OnResolve<? super 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<? super 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
 
Progress<T,F,P,Tx,Fx,Px> - Interface in io.machinecode.then.api
Interceptor allowing modification of chained Promise's.
progress(P, Deferred<Tx, Fx, Px>) - Method in interface io.machinecode.then.api.Progress
Allows modifying the new promises backing Deferred when the original promise recieves a message via Deferred.progress(Object).
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
 
reject(F, Deferred<Tx, Fx, Px>) - Method in interface io.machinecode.then.api.Progress
The caller SHOULD ensure that one of Deferred.resolve(Object), Deferred.reject(Object) or Promise.cancel(boolean) is called on the Deferred parameter.
Reject<T,F,Tx,Fx,Px> - Interface in io.machinecode.then.api
Interceptor allowing modification of chained Promise's.
reject(F, Deferred<Tx, Fx, Px>) - Method in interface io.machinecode.then.api.Reject
The caller MUST ensure that one of Deferred.resolve(Object), Deferred.reject(Object) or Promise.cancel(boolean) is called on the Deferred parameter.
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
 
resolve(T, Deferred<Tx, Fx, Px>) - Method in interface io.machinecode.then.api.Progress
The caller SHOULD ensure that one of Deferred.resolve(Object), Deferred.reject(Object) or Promise.cancel(boolean) is called on the Deferred parameter.
resolve(T, Deferred<Tx, Fx, Px>) - Method in interface io.machinecode.then.api.Reject
The caller MUST ensure that one of Deferred.resolve(Object), Deferred.reject(Object) or Promise.cancel(boolean) is called on the Deferred parameter.
Resolve<T,Tx,Fx,Px> - Interface in io.machinecode.then.api
Interceptor allowing modification of chained Promise's.
resolve(T, Deferred<Tx, Fx, Px>) - Method in interface io.machinecode.then.api.Resolve
The caller MUST ensure that one of Deferred.resolve(Object), Deferred.reject(Object) or Promise.cancel(boolean) is called on the Deferred parameter.
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
 

T

then(Resolve<? super T, Tx, F, P>) - Method in interface io.machinecode.then.api.Promise
Return a new promise that will have the resolved value of the original Promise converted to the new type using the Resolve parameter.
then(Reject<? super T, ? super F, Tx, Fx, P>) - Method in interface io.machinecode.then.api.Promise
Return a new promise that will have the resolved value of the original Promise converted to the new type using then.
then(Progress<? super T, ? super F, ? super P, Tx, Fx, Px>) - Method in interface io.machinecode.then.api.Promise
Return a new promise that will have the resolved value of the original Promise converted to the new type using then.
C D F I L O P R T 
Skip navigation links
then-api 0.3.0

Copyright © 2015 MachineCode. All rights reserved.