A C F G I L M O P R S T V 

A

Action - Interface in org.riversun.promise
Action object is an argument of Func#run method.
all(ExecutorService, Func...) - Static method in class org.riversun.promise.Promise
 
all(ExecutorService, Thennable...) - Static method in class org.riversun.promise.Promise
 
all(Func...) - Static method in class org.riversun.promise.Promise
Promise.all waits for all fulfillments (or the first rejection).
all(Func...) - Static method in class org.riversun.promise.SyncPromise
Promise.all waits for all fulfillments (or the first rejection).
all(Thennable...) - Static method in class org.riversun.promise.Promise
Promise.all waits for all fulfillments (or the first rejection).
all(Thennable...) - Static method in class org.riversun.promise.SyncPromise
Promise.all waits for all fulfillments (or the first rejection).
always(Func) - Method in class org.riversun.promise.Promise
 
always(Func) - Method in class org.riversun.promise.SyncPromise
 
always(Func) - Method in interface org.riversun.promise.Thennable
 
always(Thennable) - Method in class org.riversun.promise.Promise
 
always(Thennable) - Method in class org.riversun.promise.SyncPromise
 
always(Thennable) - Method in interface org.riversun.promise.Thennable
 

C

createExecutor() - Method in class org.riversun.promise.Promise
 

F

FULFILLED - org.riversun.promise.Status
 
Func - Interface in org.riversun.promise
Func is a java interface equivalent to JavaScript's Function for argument of #then You can write Func like a JavaScript function.

G

getStatus() - Method in class org.riversun.promise.Promise
 
getStatus() - Method in class org.riversun.promise.SyncPromise
 
getStatus() - Method in interface org.riversun.promise.Thennable
 
getValue() - Method in class org.riversun.promise.Promise
 
getValue() - Method in class org.riversun.promise.SyncPromise
 
getValue() - Method in interface org.riversun.promise.Thennable
 

I

isLogEnabled() - Static method in class org.riversun.promise.Log
 

L

Log - Class in org.riversun.promise
 
Log() - Constructor for class org.riversun.promise.Log
 

M

mName - Variable in class org.riversun.promise.Promise
 

O

org.riversun.promise - package org.riversun.promise
 

P

PENDING - org.riversun.promise.Status
 
Promise - Class in org.riversun.promise
You can chain asynchronous operations and execute them sequentially by using Promise.
Promise() - Constructor for class org.riversun.promise.Promise
 
Promise(String, ExecutorService) - Constructor for class org.riversun.promise.Promise
 
Promise(String, Func) - Constructor for class org.riversun.promise.Promise
 
Promise(String, Func, ExecutorService) - Constructor for class org.riversun.promise.Promise
 
Promise(ExecutorService) - Constructor for class org.riversun.promise.Promise
 
Promise(Func) - Constructor for class org.riversun.promise.Promise
 
Promise(Func, ExecutorService) - Constructor for class org.riversun.promise.Promise
 
PromiseException - Exception in org.riversun.promise
 

R

reject() - Method in interface org.riversun.promise.Action
To make the Promise's status rejected and move on to the next processing(specified by then) with null reason
reject() - Static method in class org.riversun.promise.Promise
Returns a Promise object that is rejected with null reason.
reject() - Static method in class org.riversun.promise.SyncPromise
Returns a Promise object that is rejected with null reason.
reject(Object) - Method in interface org.riversun.promise.Action
To make the Promise's status rejected and move on to the next processing(specified by then) with reason
reject(Object) - Static method in class org.riversun.promise.Promise
Returns a Promise object that is rejected with a given reason.
reject(Object) - Static method in class org.riversun.promise.SyncPromise
Returns a Promise object that is rejected with a given reason.
REJECTED - org.riversun.promise.Status
 
resolve() - Method in interface org.riversun.promise.Action
To make the Promise's status fulfilled and move on to the next processing(specified by then) with null result
resolve() - Static method in class org.riversun.promise.Promise
Returns a Promise object that is resolved with null value
resolve() - Static method in class org.riversun.promise.SyncPromise
Returns a Promise object that is resolved with null value
resolve(Object) - Method in interface org.riversun.promise.Action
To make the Promise's status fulfilled and move on to the next processing(specified by then) with the result(fulfillment value).
resolve(Object) - Static method in class org.riversun.promise.Promise
Returns a Promise object that is fulfilled with a given data
resolve(Object) - Static method in class org.riversun.promise.SyncPromise
Returns a Promise object that is resolved with a given value
resolve(Object, ExecutorService) - Static method in class org.riversun.promise.Promise
Returns a Promise object that is fulfilled with a given data and specify executor
run(Action, Object) - Method in interface org.riversun.promise.Func
 
runOnThread(Runnable) - Method in class org.riversun.promise.Promise
 

S

setLogEnabled(boolean) - Static method in class org.riversun.promise.Log
 
sleep(long) - Static method in class org.riversun.promise.Promise
 
sleep(long) - Static method in class org.riversun.promise.SyncPromise
 
start() - Method in class org.riversun.promise.Promise
 
start() - Method in class org.riversun.promise.SyncPromise
 
start() - Method in interface org.riversun.promise.Thennable
 
Status - Enum in org.riversun.promise
 
SyncPromise - Class in org.riversun.promise
You can chain asynchronous operations and execute them sequentially by using Promise.
SyncPromise() - Constructor for class org.riversun.promise.SyncPromise
 
SyncPromise(Func) - Constructor for class org.riversun.promise.SyncPromise
Unlike javascript promises, even if executor is passed, it will NOT be executed immediately.

T

then(Func...) - Method in class org.riversun.promise.Promise
Specify the operation to be performed after the promise processing.
then(Func...) - Method in class org.riversun.promise.SyncPromise
Specify the operation to be performed after the promise processing.
then(Func...) - Method in interface org.riversun.promise.Thennable
 
then(Thennable...) - Method in class org.riversun.promise.Promise
 
then(Thennable...) - Method in class org.riversun.promise.SyncPromise
Specify the operation to be performed after the promise processing.
then(Thennable...) - Method in interface org.riversun.promise.Thennable
 
Thennable - Interface in org.riversun.promise
Common interface of Promise.

V

valueOf(String) - Static method in enum org.riversun.promise.Status
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.riversun.promise.Status
Returns an array containing the constants of this enum type, in the order they are declared.
A C F G I L M O P R S T V 
Skip navigation links

Copyright © 2019. All rights reserved.