A C D F G I L N O P R S T V 
All Classes All Packages

A

AbstractFuture<V> - Class in cn.sliew.milky.concurrent
Abstract Future implementation which does not allow for cancellation.
AbstractFuture() - Constructor for class cn.sliew.milky.concurrent.AbstractFuture
 
addListener(FutureListener<? extends Future<? super V>>) - Method in class cn.sliew.milky.concurrent.CompleteFuture
 
addListener(FutureListener<? extends Future<? super V>>) - Method in class cn.sliew.milky.concurrent.DefaultProgressivePromise
 
addListener(FutureListener<? extends Future<? super V>>) - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
addListener(FutureListener<? extends Future<? super V>>) - Method in interface cn.sliew.milky.concurrent.Future
Adds the specified listener to this future.
addListener(FutureListener<? extends Future<? super V>>) - Method in interface cn.sliew.milky.concurrent.ProgressiveFuture
 
addListener(FutureListener<? extends Future<? super V>>) - Method in interface cn.sliew.milky.concurrent.ProgressivePromise
 
addListener(FutureListener<? extends Future<? super V>>) - Method in interface cn.sliew.milky.concurrent.Promise
 
addListener(BiConsumer<T, ? super Exception>) - Method in class cn.sliew.milky.concurrent.CompletableContext
 
await() - Method in class cn.sliew.milky.concurrent.CompleteFuture
 
await() - Method in class cn.sliew.milky.concurrent.DefaultProgressivePromise
 
await() - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
await() - Method in interface cn.sliew.milky.concurrent.Future
Waits for this future to be completed.
await() - Method in interface cn.sliew.milky.concurrent.ProgressiveFuture
 
await() - Method in interface cn.sliew.milky.concurrent.ProgressivePromise
 
await() - Method in interface cn.sliew.milky.concurrent.Promise
 
await(long, TimeUnit) - Method in class cn.sliew.milky.concurrent.CompleteFuture
 
await(long, TimeUnit) - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
await(long, TimeUnit) - Method in interface cn.sliew.milky.concurrent.Future
Waits for this future to be completed within the specified time limit.

C

cancel(boolean) - Method in class cn.sliew.milky.concurrent.CompleteFuture
 
cancel(boolean) - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
cause() - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
cause() - Method in class cn.sliew.milky.concurrent.FailedFuture
 
cause() - Method in interface cn.sliew.milky.concurrent.Future
Returns the cause of the failed operation if the operation has failed.
cause() - Method in class cn.sliew.milky.concurrent.SucceededFuture
 
cn.sliew.milky.concurrent - package cn.sliew.milky.concurrent
 
cn.sliew.milky.concurrent.threadpool - package cn.sliew.milky.concurrent.threadpool
 
CompletableContext<T> - Class in cn.sliew.milky.concurrent
A thread-safe completable context that allows listeners to be attached.
CompletableContext() - Constructor for class cn.sliew.milky.concurrent.CompletableContext
 
complete(T) - Method in class cn.sliew.milky.concurrent.CompletableContext
 
completeExceptionally(Exception) - Method in class cn.sliew.milky.concurrent.CompletableContext
 
CompleteFuture<V> - Class in cn.sliew.milky.concurrent
A skeletal Future implementation which represents a Future which has been completed already.
CompleteFuture() - Constructor for class cn.sliew.milky.concurrent.CompleteFuture
 

D

DefaultProgressivePromise<V> - Class in cn.sliew.milky.concurrent
 
DefaultProgressivePromise() - Constructor for class cn.sliew.milky.concurrent.DefaultProgressivePromise
 
DefaultPromise<V> - Class in cn.sliew.milky.concurrent
 
DefaultPromise() - Constructor for class cn.sliew.milky.concurrent.DefaultPromise
 

F

FailedFuture<V> - Class in cn.sliew.milky.concurrent
The CompleteFuture which is failed already.
FailedFuture(Throwable) - Constructor for class cn.sliew.milky.concurrent.FailedFuture
 
Future<V> - Interface in cn.sliew.milky.concurrent
The result of an asynchronous operation.
FutureListener<F extends Future<?>> - Interface in cn.sliew.milky.concurrent
Listens to the result of a Future.
Futures - Enum in cn.sliew.milky.concurrent
 

G

get() - Method in class cn.sliew.milky.concurrent.AbstractFuture
 
get(long, TimeUnit) - Method in class cn.sliew.milky.concurrent.AbstractFuture
 
getNow() - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
getNow() - Method in class cn.sliew.milky.concurrent.FailedFuture
 
getNow() - Method in interface cn.sliew.milky.concurrent.Future
Return the result without blocking.
getNow() - Method in class cn.sliew.milky.concurrent.SucceededFuture
 

I

isCancelled() - Method in class cn.sliew.milky.concurrent.CompleteFuture
 
isCancelled() - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
isCompletedExceptionally() - Method in class cn.sliew.milky.concurrent.CompletableContext
 
isDone() - Method in class cn.sliew.milky.concurrent.CompletableContext
 
isDone() - Method in class cn.sliew.milky.concurrent.CompleteFuture
 
isDone() - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
isSuccess() - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
isSuccess() - Method in class cn.sliew.milky.concurrent.FailedFuture
 
isSuccess() - Method in interface cn.sliew.milky.concurrent.Future
Returns true if and only if the operation was completed successfully.
isSuccess() - Method in class cn.sliew.milky.concurrent.SucceededFuture
 

L

listeners - Variable in class cn.sliew.milky.concurrent.DefaultPromise
One or more listeners.

N

newFailedFuture(Throwable) - Method in enum cn.sliew.milky.concurrent.Futures
 
newProgressivePromise() - Method in enum cn.sliew.milky.concurrent.Futures
 
newPromise() - Method in enum cn.sliew.milky.concurrent.Futures
 
newSucceededFuture(V) - Method in enum cn.sliew.milky.concurrent.Futures
 

O

onComplete(F) - Method in interface cn.sliew.milky.concurrent.FutureListener
Invoked when the operation associated with the Future has been completed.
onProgressed(F, long, long) - Method in interface cn.sliew.milky.concurrent.ProgressiveFutureListener
Invoked when the operation has progressed.

P

ProgressiveFuture<V> - Interface in cn.sliew.milky.concurrent
A Future which is used to indicate the progress of an operation.
ProgressiveFutureListener<F extends ProgressiveFuture<?>> - Interface in cn.sliew.milky.concurrent
 
ProgressivePromise<V> - Interface in cn.sliew.milky.concurrent
Special ProgressiveFuture which is writable.
Promise<V> - Interface in cn.sliew.milky.concurrent
Special Future which is writable.

R

removeListener(FutureListener<? extends Future<? super V>>) - Method in class cn.sliew.milky.concurrent.CompleteFuture
 
removeListener(FutureListener<? extends Future<? super V>>) - Method in class cn.sliew.milky.concurrent.DefaultProgressivePromise
 
removeListener(FutureListener<? extends Future<? super V>>) - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
removeListener(FutureListener<? extends Future<? super V>>) - Method in interface cn.sliew.milky.concurrent.Future
Removes the first occurrence of the specified listener from this future.
removeListener(FutureListener<? extends Future<? super V>>) - Method in interface cn.sliew.milky.concurrent.ProgressiveFuture
 
removeListener(FutureListener<? extends Future<? super V>>) - Method in interface cn.sliew.milky.concurrent.ProgressivePromise
 
removeListener(FutureListener<? extends Future<? super V>>) - Method in interface cn.sliew.milky.concurrent.Promise
 

S

setFailure(Throwable) - Method in class cn.sliew.milky.concurrent.DefaultProgressivePromise
 
setFailure(Throwable) - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
setFailure(Throwable) - Method in interface cn.sliew.milky.concurrent.ProgressivePromise
 
setFailure(Throwable) - Method in interface cn.sliew.milky.concurrent.Promise
Marks this future as a failure and notifies all listeners.
setProgress(long, long) - Method in class cn.sliew.milky.concurrent.DefaultProgressivePromise
 
setProgress(long, long) - Method in interface cn.sliew.milky.concurrent.ProgressivePromise
Sets the current progress of the operation and notifies the listeners that implement ProgressiveFutureListener.
setSuccess(V) - Method in class cn.sliew.milky.concurrent.DefaultProgressivePromise
 
setSuccess(V) - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
setSuccess(V) - Method in interface cn.sliew.milky.concurrent.ProgressivePromise
 
setSuccess(V) - Method in interface cn.sliew.milky.concurrent.Promise
Marks this future as a success and notifies all listeners.
SucceededFuture<V> - Class in cn.sliew.milky.concurrent
The CompleteFuture which is succeeded already.
SucceededFuture(V) - Constructor for class cn.sliew.milky.concurrent.SucceededFuture
 
sync() - Method in class cn.sliew.milky.concurrent.CompleteFuture
 
sync() - Method in class cn.sliew.milky.concurrent.DefaultProgressivePromise
 
sync() - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
sync() - Method in class cn.sliew.milky.concurrent.FailedFuture
 
sync() - Method in interface cn.sliew.milky.concurrent.Future
Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
sync() - Method in interface cn.sliew.milky.concurrent.ProgressiveFuture
 
sync() - Method in interface cn.sliew.milky.concurrent.ProgressivePromise
 
sync() - Method in interface cn.sliew.milky.concurrent.Promise
 

T

tryFailure(Throwable) - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
tryFailure(Throwable) - Method in interface cn.sliew.milky.concurrent.Promise
Marks this future as a failure and notifies all listeners.
tryProgress(long, long) - Method in class cn.sliew.milky.concurrent.DefaultProgressivePromise
 
tryProgress(long, long) - Method in interface cn.sliew.milky.concurrent.ProgressivePromise
Tries to set the current progress of the operation and notifies the listeners that implement ProgressiveFutureListener.
trySuccess(V) - Method in class cn.sliew.milky.concurrent.DefaultPromise
 
trySuccess(V) - Method in interface cn.sliew.milky.concurrent.Promise
Marks this future as a success and notifies all listeners.

V

valueOf(String) - Static method in enum cn.sliew.milky.concurrent.Futures
Returns the enum constant of this type with the specified name.
values() - Static method in enum cn.sliew.milky.concurrent.Futures
Returns an array containing the constants of this enum type, in the order they are declared.
A C D F G I L N O P R S T V 
All Classes All Packages