A B C D E F G I L M N O P R S T U W 
All Classes All Packages

A

AbstractAsyncCloseable - Class in io.activej.async.process
 
AbstractAsyncCloseable() - Constructor for class io.activej.async.process.AbstractAsyncCloseable
 
accept(T) - Method in interface io.activej.async.function.AsyncConsumer
Consumes some data asynchronously.
accept(T, Throwable) - Method in class io.activej.promise.SettablePromise
Accepts the provided values and performs this operation on them.
add(BiConsumer<A, V>, Function<R, T>, V) - Method in class io.activej.async.AsyncBuffer
 
add(BiConsumer<A, V>, V) - Method in class io.activej.async.AsyncBuffer
 
addPromise(Promise<T>, BiConsumer<A, T>) - Method in class io.activej.async.AsyncAccumulator
 
all() - Static method in class io.activej.promise.Promises
 
all(Promise<?>) - Static method in class io.activej.promise.Promises
 
all(Promise<?>...) - Static method in class io.activej.promise.Promises
 
all(Promise<?>, Promise<?>) - Static method in class io.activej.promise.Promises
Optimized for 2 promises.
all(Iterator<? extends Promise<?>>) - Static method in class io.activej.promise.Promises
Returns Promise that completes when all of the promises are completed.
all(List<? extends Promise<?>>) - Static method in class io.activej.promise.Promises
Returns a Promise that completes when all of the promises are completed.
all(Stream<? extends Promise<?>>) - Static method in class io.activej.promise.Promises
 
alwaysFalse() - Static method in interface io.activej.async.function.AsyncPredicate
 
alwaysTrue() - Static method in interface io.activej.async.function.AsyncPredicate
 
and(AsyncPredicate<? super T>) - Method in interface io.activej.async.function.AsyncPredicate
 
any() - Static method in class io.activej.promise.Promises
Returns a CompleteExceptionallyPromise with Exception, since this method doesn't accept any Promises
any(Promise<? extends T>) - Static method in class io.activej.promise.Promises
 
any(Promise<? extends T>...) - Static method in class io.activej.promise.Promises
 
any(Promise<? extends T>, Promise<? extends T>) - Static method in class io.activej.promise.Promises
Optimized for 2 promises.
any(BiPredicate<T, Throwable>, Promise<? extends T>) - Static method in class io.activej.promise.Promises
 
any(BiPredicate<T, Throwable>, Promise<? extends T>...) - Static method in class io.activej.promise.Promises
 
any(BiPredicate<T, Throwable>, Promise<? extends T>, Promise<? extends T>) - Static method in class io.activej.promise.Promises
 
any(BiPredicate<T, Throwable>, Iterator<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
any(BiPredicate<T, Throwable>, List<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
any(BiPredicate<T, Throwable>, Stream<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
any(Iterator<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
any(List<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
any(Stream<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
asPromises(AsyncSupplier<? extends T>...) - Static method in class io.activej.promise.Promises
Transforms an AsyncSupplier tasks to a collection of Promises.
asPromises(Iterable<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
Transforms an Iterable of AsyncSupplier tasks to a collection of Promises.
asPromises(Iterator<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
Transforms a collection of AsyncSupplier tasks to a collection of Promises.
asPromises(Stream<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
Transforms a Stream of AsyncSupplier tasks to a collection of Promises.
async() - Method in interface io.activej.async.function.AsyncConsumer
 
async() - Method in interface io.activej.async.function.AsyncSupplier
Ensures that supplied Promise will complete asynchronously.
async() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
async() - Method in class io.activej.promise.CompletePromise
 
async() - Method in interface io.activej.promise.Promise
Ensures that Promise completes asynchronously: if this Promise is already completed, its completion will be posted to next eventloop tick.
AsyncAccumulator<A> - Class in io.activej.async
 
AsyncBuffer<A,​R> - Class in io.activej.async
 
AsyncBuffer(Function<A, Promise<R>>, Supplier<A>) - Constructor for class io.activej.async.AsyncBuffer
 
AsyncCloseable - Interface in io.activej.async.process
Describes methods that are used to handle exceptional behaviour or to handle closing.
AsyncConsumer<T> - Interface in io.activej.async.function
Represents an asynchronous consumer that consumes data items.
AsyncConsumers - Class in io.activej.async.function
 
AsyncConsumers() - Constructor for class io.activej.async.function.AsyncConsumers
 
AsyncExecutor - Interface in io.activej.async.process
 
AsyncExecutors - Class in io.activej.async.process
 
AsyncExecutors() - Constructor for class io.activej.async.process.AsyncExecutors
 
AsyncFileService - Interface in io.activej.async.file
 
AsyncPredicate<T> - Interface in io.activej.async.function
 
AsyncPredicates - Class in io.activej.async.function
 
AsyncPredicates() - Constructor for class io.activej.async.function.AsyncPredicates
 
AsyncPredicates.AsyncPredicateWrapper<T> - Class in io.activej.async.function
 
AsyncPredicateWrapper(Predicate<T>) - Constructor for class io.activej.async.function.AsyncPredicates.AsyncPredicateWrapper
 
AsyncProcess - Interface in io.activej.async.process
 
AsyncSupplier<T> - Interface in io.activej.async.function
Represents asynchronous supplier that returns Promise of some data.
AsyncSuppliers - Class in io.activej.async.function
 
AsyncSuppliers() - Constructor for class io.activej.async.function.AsyncSuppliers
 
await(Promise<T>) - Static method in class io.activej.promise.TestUtils
 
await(Promise<T>...) - Static method in class io.activej.promise.TestUtils
 
awaitException(Promise<T>) - Static method in class io.activej.promise.TestUtils
 
awaitException(Promise<T>...) - Static method in class io.activej.promise.TestUtils
 

B

both(Promise<?>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
both(Promise<?>) - Method in class io.activej.promise.CompletePromise
 
both(Promise<?>) - Method in interface io.activej.promise.Promise
Returns a new Promise when both this and provided other Promises complete.
buffer(int, int, AsyncConsumer<T>) - Static method in class io.activej.async.function.AsyncConsumers
 
buffer(int, int, AsyncSupplier<T>) - Static method in class io.activej.async.function.AsyncSuppliers
 
buffer(AsyncConsumer<T>) - Static method in class io.activej.async.function.AsyncConsumers
 
buffer(AsyncSupplier<T>) - Static method in class io.activej.async.function.AsyncSuppliers
 
buffered(int) - Static method in class io.activej.async.process.AsyncExecutors
 
buffered(int, int) - Static method in class io.activej.async.process.AsyncExecutors
 

C

call() - Method in interface io.activej.promise.Promise.BlockingCallable
 
call(Callable<T>) - Method in interface io.activej.async.process.AsyncExecutor
 
cancelBufferedPromise(Throwable) - Method in class io.activej.async.AsyncBuffer
 
cast(AsyncPredicate<T>) - Static method in interface io.activej.async.function.AsyncPredicate
 
close() - Method in interface io.activej.async.process.AsyncCloseable
Cancels the process.
closeEx(Throwable) - Method in class io.activej.async.AsyncAccumulator
 
closeEx(Throwable) - Method in class io.activej.async.process.AbstractAsyncCloseable
 
closeEx(Throwable) - Method in interface io.activej.async.process.AsyncCloseable
Closes process exceptionally in case an exception is thrown while executing the given process.
coalesce(AsyncSupplier<T>) - Static method in class io.activej.async.function.AsyncSuppliers
 
coalesce(Supplier<A>, BiConsumer<A, T>, Function<A, Promise<R>>) - Static method in class io.activej.promise.Promises
 
combine(Promise<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
combine(Promise<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in class io.activej.promise.CompletePromise
 
combine(Promise<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in interface io.activej.promise.Promise
Returns a new Promise that, when this and the other given Promise both complete, is executed with the two results as arguments to the supplied function.
complete() - Method in class io.activej.async.AsyncAccumulator
 
complete() - Static method in interface io.activej.promise.Promise
Creates successfully completed Promise
complete(A) - Method in class io.activej.async.AsyncAccumulator
 
CompleteExceptionallyPromise<T> - Class in io.activej.promise
Represents a Promise which is completed with an exception.
CompleteExceptionallyPromise(Throwable) - Constructor for class io.activej.promise.CompleteExceptionallyPromise
 
CompleteNullPromise<T> - Class in io.activej.promise
Represents a CompletePromise with result that equals null.
CompletePromise<T> - Class in io.activej.promise
Represents a completed Promise with a result of unspecified type.
CompletePromise() - Constructor for class io.activej.promise.CompletePromise
 
CompleteResultPromise<T> - Class in io.activej.promise
Represents a CompletePromise with a result of unspecified type.
CompleteResultPromise(T) - Constructor for class io.activej.promise.CompleteResultPromise
 
create(A) - Static method in class io.activej.async.AsyncAccumulator
 
create(Eventloop, AsyncSupplier<T>) - Static method in class io.activej.async.service.EventloopTaskScheduler
 
create(Duration) - Static method in class io.activej.promise.jmx.PromiseStats
 
createMBean(Eventloop, Duration) - Static method in class io.activej.promise.jmx.PromiseStats
 
createRetryState() - Method in interface io.activej.promise.RetryPolicy
 
createRetryState() - Method in class io.activej.promise.RetryPolicy.DelegatingRetryPolicy
 
createRetryState() - Method in class io.activej.promise.RetryPolicy.SimpleRetryPolicy
 
createRetryState() - Method in class io.activej.promise.RetryPolicy.StatelessRetryPolicy
 

D

delay(long) - Static method in class io.activej.promise.Promises
 
delay(long, Promise<T>) - Static method in class io.activej.promise.Promises
Delays completion of provided promise for the defined period of time.
delay(long, T) - Static method in class io.activej.promise.Promises
 
delay(Duration) - Static method in class io.activej.promise.Promises
 
delay(Duration, Promise<T>) - Static method in class io.activej.promise.Promises
 
delay(Duration, T) - Static method in class io.activej.promise.Promises
 
DelegatingRetryPolicy(RetryPolicy<DS>) - Constructor for class io.activej.promise.RetryPolicy.DelegatingRetryPolicy
 
describe() - Method in class io.activej.promise.SettablePromise
 
direct() - Static method in class io.activej.async.process.AsyncExecutors
 
doCreateRetryState() - Method in class io.activej.promise.RetryPolicy.DelegatingRetryPolicy
 

E

either(Promise<? extends T>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
either(Promise<? extends T>) - Method in class io.activej.promise.CompletePromise
 
either(Promise<? extends T>) - Method in interface io.activej.promise.Promise
Returns the Promise which was completed first.
eventloop - Variable in class io.activej.async.process.AbstractAsyncCloseable
 
EventloopService - Interface in io.activej.async.service
This interface is for services that can be started and then stopped in the context of eventloop, so it works with Promise
EventloopTaskScheduler - Class in io.activej.async.service
 
EventloopTaskScheduler.Schedule - Interface in io.activej.async.service
 
execute(AsyncSupplier<T>) - Method in interface io.activej.async.process.AsyncExecutor
 
ExecutorAsyncFileService - Class in io.activej.async.file
 
ExecutorAsyncFileService(Executor) - Constructor for class io.activej.async.file.ExecutorAsyncFileService
 
exponentialBackoff(long, long) - Static method in interface io.activej.promise.RetryPolicy
 
exponentialBackoff(long, long, double) - Static method in interface io.activej.promise.RetryPolicy
 
exponentialBackoff(Duration, Duration) - Static method in interface io.activej.promise.RetryPolicy
 
exponentialBackoff(Duration, Duration, double) - Static method in interface io.activej.promise.RetryPolicy
 

F

first(Iterable<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
 
first(BiPredicate<? super T, ? super Throwable>, AsyncSupplier<? extends T>...) - Static method in class io.activej.promise.Promises
 
first(BiPredicate<? super T, ? super Throwable>, Iterable<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
 
first(BiPredicate<? super T, ? super Throwable>, Iterator<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
first(BiPredicate<? super T, ? super Throwable>, Stream<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
 
first(Iterator<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
first(Stream<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
 
first(AsyncSupplier<? extends T>...) - Static method in class io.activej.promise.Promises
Picks the first Promise that was completed without exception.
fixedDelay(long) - Static method in interface io.activej.promise.RetryPolicy
 
fixedDelay(Duration) - Static method in interface io.activej.promise.RetryPolicy
 
flush() - Method in class io.activej.async.AsyncBuffer
 

G

get() - Method in class io.activej.async.AsyncAccumulator
 
get() - Method in interface io.activej.async.function.AsyncSupplier
Gets Promise of data item asynchronously.
getAccumulator() - Method in class io.activej.async.AsyncAccumulator
 
getActiveCalls() - Method in class io.activej.async.AsyncBuffer
 
getActivePromises() - Method in class io.activej.async.AsyncAccumulator
 
getActivePromises() - Method in class io.activej.promise.jmx.PromiseStats
 
getBuffer() - Method in class io.activej.async.AsyncBuffer
 
getBufferedPromise() - Method in class io.activej.async.AsyncBuffer
 
getCurrentDuration() - Method in class io.activej.promise.jmx.PromiseStats
 
getDuration() - Method in class io.activej.promise.jmx.PromiseStats
 
getEventloop() - Method in interface io.activej.async.service.EventloopService
 
getEventloop() - Method in class io.activej.async.service.EventloopTaskScheduler
 
getException() - Method in class io.activej.async.process.AbstractAsyncCloseable
 
getException() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
getException() - Method in class io.activej.promise.CompletePromise
 
getException() - Method in interface io.activej.promise.Promise
 
getExceptions() - Method in class io.activej.promise.jmx.PromiseStats
 
getInitialDelay() - Method in class io.activej.async.service.EventloopTaskScheduler
 
getInterval() - Method in class io.activej.async.service.EventloopTaskScheduler
 
getLastCompleteTime() - Method in class io.activej.promise.jmx.PromiseStats
 
getLastException() - Method in class io.activej.async.service.EventloopTaskScheduler
 
getLastStartTime() - Method in class io.activej.promise.jmx.PromiseStats
 
getPeriod() - Method in class io.activej.async.service.EventloopTaskScheduler
 
getPredicate() - Method in class io.activej.async.function.AsyncPredicates.AsyncPredicateWrapper
 
getProcessCompletion() - Method in interface io.activej.async.process.AsyncProcess
 
getPromise() - Method in class io.activej.promise.ResultWithPromise
 
getResult() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
getResult() - Method in class io.activej.promise.CompleteNullPromise
 
getResult() - Method in class io.activej.promise.CompletePromise
 
getResult() - Method in class io.activej.promise.CompleteResultPromise
 
getResult() - Method in interface io.activej.promise.Promise
 
getResult() - Method in class io.activej.promise.ResultWithPromise
 
getStats() - Method in class io.activej.async.service.EventloopTaskScheduler
 
getTry() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
getTry() - Method in class io.activej.promise.CompletePromise
 
getTry() - Method in interface io.activej.promise.Promise
 

I

immediate() - Static method in interface io.activej.async.service.EventloopTaskScheduler.Schedule
Schedules immediate execution.
immediateRetry() - Static method in interface io.activej.promise.RetryPolicy
 
interval(long, Promise<T>) - Static method in class io.activej.promise.Promises
 
interval(Duration, Promise<T>) - Static method in class io.activej.promise.Promises
 
io.activej.async - package io.activej.async
 
io.activej.async.file - package io.activej.async.file
 
io.activej.async.function - package io.activej.async.function
 
io.activej.async.process - package io.activej.async.process
 
io.activej.async.service - package io.activej.async.service
 
io.activej.promise - package io.activej.promise
 
io.activej.promise.jmx - package io.activej.promise.jmx
 
isActive() - Method in class io.activej.async.AsyncBuffer
 
isBuffered() - Method in class io.activej.async.AsyncBuffer
 
isClosed() - Method in class io.activej.async.process.AbstractAsyncCloseable
 
isComplete() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
isComplete() - Method in class io.activej.promise.CompletePromise
 
isComplete() - Method in interface io.activej.promise.Promise
 
isEnabled() - Method in class io.activej.async.service.EventloopTaskScheduler
 
isError() - Static method in class io.activej.promise.Promises
Returns a BiPredicate which checks if Promise was completed with an exception.
isError(Predicate<? super Throwable>) - Static method in class io.activej.promise.Promises
 
isException() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
isException() - Method in class io.activej.promise.CompletePromise
 
isException() - Method in interface io.activej.promise.Promise
 
isResult() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
isResult() - Method in class io.activej.promise.CompletePromise
 
isResult() - Method in interface io.activej.promise.Promise
 
isResult() - Static method in class io.activej.promise.Promises
Returns a BiPredicate which checks if Promise wasn't completed exceptionally.
isResult(Predicate<? super T>) - Static method in class io.activej.promise.Promises
 
isResultOrError(Predicate<? super T>) - Static method in class io.activej.promise.Promises
 
isResultOrError(Predicate<? super T>, Predicate<? super Throwable>) - Static method in class io.activej.promise.Promises
 

L

lastError - Variable in class io.activej.promise.RetryPolicy.SimpleRetryState
 
loop(T, Predicate<T>, Function<T, Promise<T>>) - Static method in class io.activej.promise.Promises
Repeats provided Function until can pass Predicate test.

M

map(Function<? super T, ? extends U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
map(Function<? super T, ? extends U>) - Method in class io.activej.promise.CompletePromise
 
map(Function<? super T, ? extends U>) - Method in interface io.activej.promise.Promise
Returns a new Promise which is executed with this Promise's result as the argument to the provided function when this Promise completes successfully.
map(Function<? super T, ? extends V>) - Method in interface io.activej.async.function.AsyncSupplier
Applies function before supplying a Promise.
map(Function<? super V, ? extends T>) - Method in interface io.activej.async.function.AsyncConsumer
 
mapAsync(Function<? super T, ? extends Promise<V>>) - Method in interface io.activej.async.function.AsyncSupplier
Applies function to the result of supplied Promise.
mapAsync(Function<? super V, ? extends Promise<T>>) - Method in interface io.activej.async.function.AsyncConsumer
 
mapEx(BiFunction<? super T, Throwable, ? extends U>) - Method in interface io.activej.promise.Promise
Returns a new Promise which is executed with this Promise's result as the argument to the provided function when this Promise completes either successfully (when exception is null) or with an exception.
mapEx(BiFunction<? super T, Throwable, ? extends U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
mapEx(BiFunction<? super T, Throwable, ? extends U>) - Method in class io.activej.promise.CompletePromise
 
mapTuple(TupleConstructor1<R1, R>, Function<? super T, T1>, Function<T1, ? extends Promise<R1>>) - Static method in class io.activej.promise.Promises
 
mapTuple(TupleConstructor2<R1, R2, R>, Function<? super T, T1>, Function<T1, ? extends Promise<R1>>, Function<? super T, T2>, Function<T2, ? extends Promise<R2>>) - Static method in class io.activej.promise.Promises
 
mapTuple(TupleConstructor3<R1, R2, R3, R>, Function<? super T, T1>, Function<T1, ? extends Promise<R1>>, Function<? super T, T2>, Function<T2, ? extends Promise<R2>>, Function<? super T, T3>, Function<T3, ? extends Promise<R3>>) - Static method in class io.activej.promise.Promises
 
mapTuple(TupleConstructor4<R1, R2, R3, R4, R>, Function<? super T, T1>, Function<T1, ? extends Promise<R1>>, Function<? super T, T2>, Function<T2, ? extends Promise<R2>>, Function<? super T, T3>, Function<T3, ? extends Promise<R3>>, Function<? super T, T4>, Function<T4, ? extends Promise<R4>>) - Static method in class io.activej.promise.Promises
 
mapTuple(TupleConstructor5<R1, R2, R3, R4, R5, R>, Function<? super T, T1>, Function<T1, ? extends Promise<R1>>, Function<? super T, T2>, Function<T2, ? extends Promise<R2>>, Function<? super T, T3>, Function<T3, ? extends Promise<R3>>, Function<? super T, T4>, Function<T4, ? extends Promise<R4>>, Function<? super T, T5>, Function<T5, ? extends Promise<R5>>) - Static method in class io.activej.promise.Promises
 
mapTuple(TupleConstructor6<R1, R2, R3, R4, R5, R6, R>, Function<? super T, T1>, Function<T1, ? extends Promise<R1>>, Function<? super T, T2>, Function<T2, ? extends Promise<R2>>, Function<? super T, T3>, Function<T3, ? extends Promise<R3>>, Function<? super T, T4>, Function<T4, ? extends Promise<R4>>, Function<? super T, T5>, Function<T5, ? extends Promise<R5>>, Function<? super T, T6>, Function<T6, ? extends Promise<R6>>) - Static method in class io.activej.promise.Promises
 
monitor(Promise<T>) - Method in class io.activej.promise.jmx.PromiseStats
 

N

negate() - Method in interface io.activej.async.function.AsyncPredicate
 
newPromise(BiConsumer<A, V>) - Method in class io.activej.async.AsyncAccumulator
 
next(P) - Method in interface io.activej.promise.Promise
Executes given promise after execution of this Promise completes.
next(S) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
next(S) - Method in class io.activej.promise.CompletePromise
 
NextPromise<T,​R> - Class in io.activej.promise
Helps to create sequent chains of Promises.
NextPromise() - Constructor for class io.activej.promise.NextPromise
 
nextRetryTimestamp(long, Throwable, int, long) - Method in class io.activej.promise.RetryPolicy.SimpleRetryPolicy
 
nextRetryTimestamp(long, Throwable, Tuple2<S, DS>) - Method in class io.activej.promise.RetryPolicy.DelegatingRetryPolicy
 
nextRetryTimestamp(long, Throwable, RetryPolicy.SimpleRetryState) - Method in class io.activej.promise.RetryPolicy.SimpleRetryPolicy
 
nextRetryTimestamp(long, Throwable, S) - Method in interface io.activej.promise.RetryPolicy
 
nextRetryTimestamp(long, Throwable, S, DS) - Method in class io.activej.promise.RetryPolicy.DelegatingRetryPolicy
 
nextTimestamp(long, long, long) - Method in interface io.activej.async.service.EventloopTaskScheduler.Schedule
 
noRetry() - Static method in interface io.activej.promise.RetryPolicy
 

O

of(Consumer<? super T>) - Static method in interface io.activej.async.function.AsyncConsumer
Wraps standard Java's Consumer interface.
of(Supplier<Promise<T>>) - Static method in interface io.activej.async.function.AsyncSupplier
 
of(Predicate<T>) - Static method in interface io.activej.async.function.AsyncPredicate
 
of(T) - Static method in interface io.activej.promise.Promise
Creates successfully completed Promise.
of(T, Throwable) - Static method in interface io.activej.promise.Promise
Creates a completed Promise from T value and Throwable e parameters, any of them can be null.
of(T, Promise<V>) - Static method in class io.activej.promise.ResultWithPromise
 
ofAsyncSupplierIterable(Iterable<? extends AsyncSupplier<T>>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofAsyncSupplierIterator(Iterator<? extends AsyncSupplier<T>>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofAsyncSupplierStream(Stream<? extends AsyncSupplier<T>>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofBlockingCallable(Executor, Promise.BlockingCallable<? extends T>) - Static method in interface io.activej.promise.Promise
Runs some task in another thread (executed by a given Executor) and returns a Promise for it.
ofBlockingRunnable(Executor, Promise.BlockingRunnable) - Static method in interface io.activej.promise.Promise
Same as Promise.ofBlockingCallable(Executor, BlockingCallable), but without a result (returned Promise is only a marker of completion).
ofCallback(Consumer<SettablePromise<T>>) - Static method in interface io.activej.promise.Promise
Creates and returns a new SettablePromise that is accepted by the provided Consumer of SettablePromise
ofCompletionStage(CompletionStage<? extends T>) - Static method in interface io.activej.promise.Promise
Wraps Java CompletionStage in a Promise, running it in current eventloop.
ofDelay(long) - Static method in interface io.activej.async.service.EventloopTaskScheduler.Schedule
 
ofDelay(Duration) - Static method in interface io.activej.async.service.EventloopTaskScheduler.Schedule
Schedules task after delay.
ofEventloop(Eventloop) - Static method in class io.activej.async.process.AsyncExecutors
 
ofException(Throwable) - Static method in interface io.activej.promise.Promise
Creates an exceptionally completed Promise.
ofFuture(CompletableFuture<? extends T>) - Static method in interface io.activej.promise.Promise
Creates a Promise wrapper around default Java CompletableFuture and runs it immediately.
ofFuture(Executor, Future<? extends T>) - Static method in interface io.activej.promise.Promise
Wraps Java Future in a Promise running it with given Executor.
ofInterval(long) - Static method in interface io.activej.async.service.EventloopTaskScheduler.Schedule
Schedules task after last complete time and next task.
ofInterval(Duration) - Static method in interface io.activej.async.service.EventloopTaskScheduler.Schedule
 
ofIterable(Iterable<? extends T>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofIterator(Iterator<? extends T>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofMaxRecursiveCalls(int) - Static method in class io.activej.async.process.AsyncExecutors
 
ofOptional(Optional<T>) - Static method in interface io.activej.promise.Promise
 
ofOptional(Optional<T>, Supplier<? extends Throwable>) - Static method in interface io.activej.promise.Promise
Creates a new Promise of the given value.
ofPeriod(long) - Static method in interface io.activej.async.service.EventloopTaskScheduler.Schedule
Schedules task in period of current and next task.
ofPeriod(Duration) - Static method in interface io.activej.async.service.EventloopTaskScheduler.Schedule
 
ofPromise(Promise<T>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofPromiseIterable(Iterable<? extends Promise<T>>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofPromiseIterator(Iterator<? extends Promise<T>>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofPromiseStream(Stream<? extends Promise<T>>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofStream(Stream<? extends T>) - Static method in interface io.activej.async.function.AsyncSupplier
 
ofTry(Try<T>) - Static method in interface io.activej.promise.Promise
Returns a new CompletePromise or CompleteExceptionallyPromise based on the provided Try.
ofValue(T) - Static method in interface io.activej.async.function.AsyncSupplier
 
onCleanup() - Method in class io.activej.async.process.AbstractAsyncCloseable
 
onClosed(Throwable) - Method in class io.activej.async.process.AbstractAsyncCloseable
 
or(AsyncPredicate<? super T>) - Method in interface io.activej.async.function.AsyncPredicate
 

P

peek(Consumer<? super T>) - Method in interface io.activej.async.function.AsyncSupplier
 
peek(Consumer<T>) - Method in interface io.activej.async.function.AsyncConsumer
 
peekEx(Callback<T>) - Method in interface io.activej.async.function.AsyncSupplier
 
post() - Method in interface io.activej.promise.Promise
 
post(T) - Method in class io.activej.promise.SettablePromise
 
post(T, Throwable) - Method in class io.activej.promise.SettablePromise
 
postException(Throwable) - Method in class io.activej.promise.SettablePromise
 
prefetch(int, AsyncSupplier<? extends T>) - Static method in class io.activej.async.function.AsyncSuppliers
 
prefetch(int, AsyncSupplier<? extends T>, AsyncSupplier<? extends T>) - Static method in class io.activej.async.function.AsyncSuppliers
 
Promisable<T> - Interface in io.activej.promise
 
promise() - Method in interface io.activej.promise.Promisable
 
promise() - Method in interface io.activej.promise.Promise
 
Promise<T> - Interface in io.activej.promise
Replacement of default Java CompletionStage interface with optimized design, which allows to handle different scenarios more efficiently.
Promise.BlockingCallable<V> - Interface in io.activej.promise
 
Promise.BlockingRunnable - Interface in io.activej.promise
 
Promises - Class in io.activej.promise
Allows to manage multiple Promises.
Promises() - Constructor for class io.activej.promise.Promises
 
PromiseStats - Class in io.activej.promise.jmx
Allows to track stats of Promises.
PromiseStats(Eventloop, ValueStats) - Constructor for class io.activej.promise.jmx.PromiseStats
 

R

read(FileChannel, long, byte[], int, int) - Method in interface io.activej.async.file.AsyncFileService
 
read(FileChannel, long, byte[], int, int) - Method in class io.activej.async.file.ExecutorAsyncFileService
 
recordStats() - Method in class io.activej.promise.jmx.PromiseStats
 
reduce(Collector<T, A, R>, int, Iterator<Promise<T>>) - Static method in class io.activej.promise.Promises
Allows to asynchronously reduce Iterator of Promises into a Promise with the help of Collector.
reduce(A, BiConsumer<A, T>, Function<A, R>, int, Iterator<Promise<T>>) - Static method in class io.activej.promise.Promises
 
repeat(Supplier<Promise<Boolean>>) - Static method in class io.activej.promise.Promises
Repeats the operations of provided supplier infinitely, until one of the Promises completes exceptionally.
ResultWithPromise<T,​V> - Class in io.activej.promise
 
retry(RetryPolicy<?>) - Static method in class io.activej.async.process.AsyncExecutors
 
retry(AsyncSupplier<T>) - Static method in class io.activej.promise.Promises
 
retry(AsyncSupplier<T>, RetryPolicy<?>) - Static method in class io.activej.promise.Promises
 
retry(AsyncSupplier<T>, BiPredicate<T, Throwable>, RetryPolicy<?>) - Static method in class io.activej.promise.Promises
 
retry(BiPredicate<T, Throwable>, AsyncSupplier<T>) - Static method in class io.activej.promise.Promises
 
retryCount - Variable in class io.activej.promise.RetryPolicy.SimpleRetryState
 
retryFirstTimestamp - Variable in class io.activej.promise.RetryPolicy.SimpleRetryState
 
RetryPolicy<S> - Interface in io.activej.promise
 
RetryPolicy.DelegatingRetryPolicy<S,​DS> - Class in io.activej.promise
 
RetryPolicy.SimpleRetryPolicy - Class in io.activej.promise
 
RetryPolicy.SimpleRetryState - Class in io.activej.promise
 
RetryPolicy.StatelessRetryPolicy - Class in io.activej.promise
 
reuse(AsyncSupplier<? extends T>) - Static method in class io.activej.async.function.AsyncSuppliers
 
roundRobin(List<AsyncExecutor>) - Static method in class io.activej.async.process.AsyncExecutors
 
run() - Method in class io.activej.async.AsyncAccumulator
 
run() - Method in interface io.activej.promise.Promise.BlockingRunnable
 
run(Callback<? super T>) - Method in interface io.activej.promise.Promise
 
run(Promise<Void>) - Method in class io.activej.async.AsyncAccumulator
 
run(Runnable) - Method in interface io.activej.async.process.AsyncExecutor
 

S

sanitize(Promise<T>) - Method in class io.activej.async.process.AbstractAsyncCloseable
 
sanitize(T, Throwable) - Method in class io.activej.async.process.AbstractAsyncCloseable
 
schedule(long) - Static method in class io.activej.promise.Promises
 
schedule(Promise<T>, long) - Static method in class io.activej.promise.Promises
Schedules completion of the Promise so that it will be completed after the timestamp even if its operations were completed earlier.
schedule(Promise<T>, Instant) - Static method in class io.activej.promise.Promises
 
schedule(Instant) - Static method in class io.activej.promise.Promises
 
schedule(T, long) - Static method in class io.activej.promise.Promises
 
schedule(T, Instant) - Static method in class io.activej.promise.Promises
 
sequence() - Static method in class io.activej.promise.Promises
sequence(AsyncSupplier<Void>) - Static method in class io.activej.promise.Promises
Gets Promise from provided AsyncSupplier, waits until it completes and than returns a Promise<Void>
sequence(AsyncSupplier<Void>...) - Static method in class io.activej.promise.Promises
 
sequence(AsyncSupplier<Void>, AsyncSupplier<Void>) - Static method in class io.activej.promise.Promises
Gets Promises from provided AsyncSuppliers, end executes them consequently, discarding their results.
sequence(Iterable<? extends AsyncSupplier<Void>>) - Static method in class io.activej.promise.Promises
 
sequence(Iterator<? extends Promise<Void>>) - Static method in class io.activej.promise.Promises
Calls every Promise from promises in sequence and discards their results.Returns a SettablePromise with null result as a marker when all of the promises are completed.
sequence(Stream<? extends AsyncSupplier<Void>>) - Static method in class io.activej.promise.Promises
 
sequential() - Static method in class io.activej.async.process.AsyncExecutors
 
set(T) - Method in class io.activej.promise.SettablePromise
Sets the result of this SettablePromise and completes it.
setCloseable(AsyncCloseable) - Method in class io.activej.async.process.AbstractAsyncCloseable
 
setEnabled(boolean) - Method in class io.activej.async.service.EventloopTaskScheduler
 
setException(Throwable) - Method in class io.activej.promise.SettablePromise
Sets exception and completes this SettablePromise exceptionally.
setHistogram(int[]) - Method in class io.activej.promise.jmx.PromiseStats
 
setHistogram(JmxHistogram) - Method in class io.activej.promise.jmx.PromiseStats
 
setInterval(Duration) - Method in class io.activej.async.service.EventloopTaskScheduler
 
setPeriod(Duration) - Method in class io.activej.async.service.EventloopTaskScheduler
 
setRetryPolicy(RetryPolicy<?>) - Method in class io.activej.async.service.EventloopTaskScheduler
 
setSchedule(EventloopTaskScheduler.Schedule) - Method in class io.activej.async.service.EventloopTaskScheduler
 
SettablePromise<T> - Class in io.activej.promise
Represents a Promise which can be completed or completedExceptionally manually at once or later in the future.
SettablePromise() - Constructor for class io.activej.promise.SettablePromise
 
SimpleRetryPolicy() - Constructor for class io.activej.promise.RetryPolicy.SimpleRetryPolicy
 
SimpleRetryState() - Constructor for class io.activej.promise.RetryPolicy.SimpleRetryState
 
start() - Method in interface io.activej.async.service.EventloopService
Starts this component asynchronously.
start() - Method in class io.activej.async.service.EventloopTaskScheduler
 
startFuture() - Method in interface io.activej.async.service.EventloopService
 
startNow() - Method in class io.activej.async.service.EventloopTaskScheduler
 
startProcess() - Method in interface io.activej.async.process.AsyncProcess
 
StatelessRetryPolicy() - Constructor for class io.activej.promise.RetryPolicy.StatelessRetryPolicy
 
STATIC - Static variable in interface io.activej.async.process.AsyncCloseable
 
stop() - Method in interface io.activej.async.service.EventloopService
Stops this component asynchronously.
stop() - Method in class io.activej.async.service.EventloopTaskScheduler
 
stopFuture() - Method in interface io.activej.async.service.EventloopService
 

T

test(T) - Method in interface io.activej.async.function.AsyncPredicate
 
test(T) - Method in class io.activej.async.function.AsyncPredicates.AsyncPredicateWrapper
 
TestUtils - Class in io.activej.promise
 
TestUtils() - Constructor for class io.activej.promise.TestUtils
 
then(Function<? super T, ? extends Promise<? extends U>>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
then(Function<? super T, ? extends Promise<? extends U>>) - Method in class io.activej.promise.CompletePromise
 
then(Function<? super T, ? extends Promise<? extends U>>) - Method in interface io.activej.promise.Promise
Returns a new Promise which, when this Promise completes successfully, is executed with this Promise's result as the argument to the supplied function.
then(Supplier<? extends Promise<? extends U>>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
then(Supplier<? extends Promise<? extends U>>) - Method in class io.activej.promise.CompletePromise
 
then(Supplier<? extends Promise<? extends U>>) - Method in interface io.activej.promise.Promise
 
thenEx(BiFunction<? super T, Throwable, ? extends Promise<? extends U>>) - Method in interface io.activej.promise.Promise
Returns a new Promise which, when this Promise completes either successfully (if exception is null) or exceptionally (if exception is not null), is executed with this Promise's result as the argument to the supplied function.
thenEx(BiFunction<? super T, Throwable, ? extends Promise<? extends U>>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
thenEx(BiFunction<? super T, Throwable, ? extends Promise<? extends U>>) - Method in class io.activej.promise.CompletePromise
 
timeout(long, Promise<T>) - Static method in class io.activej.promise.Promises
Waits until the delay passes and if the Promise is still not complete, tries to complete it with TIMEOUT_EXCEPTION.
timeout(Duration, Promise<T>) - Static method in class io.activej.promise.Promises
 
toArray(Class<T>) - Static method in class io.activej.promise.Promises
Returns an array of provided type and length 0 wrapped in Promise.
toArray(Class<T>, Promise<? extends T>) - Static method in class io.activej.promise.Promises
Returns an array with promise1 result.
toArray(Class<T>, Promise<? extends T>...) - Static method in class io.activej.promise.Promises
 
toArray(Class<T>, Promise<? extends T>, Promise<? extends T>) - Static method in class io.activej.promise.Promises
Returns an array with promise1 and promise2 results.
toArray(Class<T>, Iterable<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
toArray(Class<T>, Iterator<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
toArray(Class<T>, List<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
Reduces promises into Promise<Array>
toArray(Class<T>, Stream<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
toCompletableFuture() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
toCompletableFuture() - Method in class io.activej.promise.CompletePromise
 
toCompletableFuture() - Method in interface io.activej.promise.Promise
Wraps Promise into CompletableFuture.
toList() - Static method in class io.activej.promise.Promises
Returns a successfully completed Promise with an empty list as the result.
toList(Promise<? extends T>) - Static method in class io.activej.promise.Promises
Returns a completed Promise with a result wrapped in List.
toList(Promise<? extends T>...) - Static method in class io.activej.promise.Promises
 
toList(Promise<? extends T>, Promise<? extends T>) - Static method in class io.activej.promise.Promises
Returns Promise with a list of promise1 and promise2 results.
toList(Iterable<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
toList(Iterator<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
toList(List<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
Reduces list of Promises into Promise<List>.
toList(Stream<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
 
toString() - Method in class io.activej.promise.jmx.PromiseStats
 
toTry() - Method in interface io.activej.async.function.AsyncSupplier
 
toTry() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
toTry() - Method in class io.activej.promise.CompletePromise
 
toTry() - Method in interface io.activej.promise.Promise
Returns Promise that always completes successfully with result or exception wrapped in Try.
toTuple(TupleConstructor1<T1, R>, Promise<? extends T1>) - Static method in class io.activej.promise.Promises
 
toTuple(TupleConstructor2<T1, T2, R>, Promise<? extends T1>, Promise<? extends T2>) - Static method in class io.activej.promise.Promises
 
toTuple(TupleConstructor3<T1, T2, T3, R>, Promise<? extends T1>, Promise<? extends T2>, Promise<? extends T3>) - Static method in class io.activej.promise.Promises
 
toTuple(TupleConstructor4<T1, T2, T3, T4, R>, Promise<? extends T1>, Promise<? extends T2>, Promise<? extends T3>, Promise<? extends T4>) - Static method in class io.activej.promise.Promises
 
toTuple(TupleConstructor5<T1, T2, T3, T4, T5, R>, Promise<? extends T1>, Promise<? extends T2>, Promise<? extends T3>, Promise<? extends T4>, Promise<? extends T5>) - Static method in class io.activej.promise.Promises
 
toTuple(TupleConstructor6<T1, T2, T3, T4, T5, T6, R>, Promise<? extends T1>, Promise<? extends T2>, Promise<? extends T3>, Promise<? extends T4>, Promise<? extends T5>, Promise<? extends T6>) - Static method in class io.activej.promise.Promises
 
toTuple(Promise<? extends T1>) - Static method in class io.activej.promise.Promises
 
toTuple(Promise<? extends T1>, Promise<? extends T2>) - Static method in class io.activej.promise.Promises
 
toTuple(Promise<? extends T1>, Promise<? extends T2>, Promise<? extends T3>) - Static method in class io.activej.promise.Promises
 
toTuple(Promise<? extends T1>, Promise<? extends T2>, Promise<? extends T3>, Promise<? extends T4>) - Static method in class io.activej.promise.Promises
 
toTuple(Promise<? extends T1>, Promise<? extends T2>, Promise<? extends T3>, Promise<? extends T4>, Promise<? extends T5>) - Static method in class io.activej.promise.Promises
 
toTuple(Promise<? extends T1>, Promise<? extends T2>, Promise<? extends T3>, Promise<? extends T4>, Promise<? extends T5>, Promise<? extends T6>) - Static method in class io.activej.promise.Promises
 
toVoid() - Method in interface io.activej.async.function.AsyncSupplier
 
toVoid() - Method in class io.activej.promise.CompleteExceptionallyPromise
 
toVoid() - Method in class io.activej.promise.CompletePromise
 
toVoid() - Method in interface io.activej.promise.Promise
Waits for result and discards it.
transformWith(Function<AsyncConsumer<T>, R>) - Method in interface io.activej.async.function.AsyncConsumer
 
transformWith(Function<AsyncSupplier<T>, R>) - Method in interface io.activej.async.function.AsyncSupplier
 
tryPost(T) - Method in class io.activej.promise.SettablePromise
 
tryPost(T, Throwable) - Method in class io.activej.promise.SettablePromise
 
tryPostException(Throwable) - Method in class io.activej.promise.SettablePromise
 
trySet(T) - Method in class io.activej.promise.SettablePromise
Tries to set provided result for this SettablePromise if it is not completed yet.
trySet(T, Throwable) - Method in class io.activej.promise.SettablePromise
Tries to set result or exception for this SettablePromise if it not completed yet.
trySetException(Throwable) - Method in class io.activej.promise.SettablePromise
Tries to set provided e exception for this SettablePromise if it is not completed yet.

U

until(T, Function<T, Promise<T>>, Predicate<T>) - Static method in class io.activej.promise.Promises
 

W

whenComplete(Callback<? super T>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
whenComplete(Callback<? super T>) - Method in class io.activej.promise.CompletePromise
 
whenComplete(Callback<? super T>) - Method in interface io.activej.promise.Promise
Subscribes given action to be executed after this Promise completes and returns a new Promise.
whenComplete(Runnable) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
whenComplete(Runnable) - Method in class io.activej.promise.CompletePromise
 
whenComplete(Runnable) - Method in interface io.activej.promise.Promise
Subscribes given action to be executed after this Promise completes and returns a new Promise.
whenException(Runnable) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
whenException(Runnable) - Method in class io.activej.promise.CompletePromise
 
whenException(Runnable) - Method in interface io.activej.promise.Promise
 
whenException(Consumer<Throwable>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
whenException(Consumer<Throwable>) - Method in class io.activej.promise.CompletePromise
 
whenException(Consumer<Throwable>) - Method in interface io.activej.promise.Promise
Subscribes given action to be executed after this Promise completes exceptionally and returns a new Promise.
whenResult(Runnable) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
whenResult(Runnable) - Method in class io.activej.promise.CompletePromise
 
whenResult(Runnable) - Method in interface io.activej.promise.Promise
 
whenResult(Consumer<? super T>) - Method in class io.activej.promise.CompleteExceptionallyPromise
 
whenResult(Consumer<? super T>) - Method in class io.activej.promise.CompletePromise
 
whenResult(Consumer<? super T>) - Method in interface io.activej.promise.Promise
Subscribes given action to be executed after this Promise completes successfully and returns a new Promise.
withAbortOnError(boolean) - Method in class io.activej.async.service.EventloopTaskScheduler
 
withExecutor(AsyncExecutor) - Method in interface io.activej.async.function.AsyncConsumer
 
withExecutor(AsyncExecutor) - Method in interface io.activej.async.function.AsyncSupplier
 
withHistogram(int[]) - Method in class io.activej.promise.jmx.PromiseStats
 
withHistogram(JmxHistogram) - Method in class io.activej.promise.jmx.PromiseStats
 
withInitialDelay(Duration) - Method in class io.activej.async.service.EventloopTaskScheduler
 
withInterval(Duration) - Method in class io.activej.async.service.EventloopTaskScheduler
 
withMaxTotalRetryCount(int) - Method in interface io.activej.promise.RetryPolicy
 
withMaxTotalRetryTimeout(Duration) - Method in interface io.activej.promise.RetryPolicy
 
withPeriod(Duration) - Method in class io.activej.async.service.EventloopTaskScheduler
 
withPromise(Promise<T>, BiConsumer<A, T>) - Method in class io.activej.async.AsyncAccumulator
 
withRetryPolicy(RetryPolicy<?>) - Method in class io.activej.async.service.EventloopTaskScheduler
 
withSchedule(EventloopTaskScheduler.Schedule) - Method in class io.activej.async.service.EventloopTaskScheduler
 
withStatsHistogramLevels(int[]) - Method in class io.activej.async.service.EventloopTaskScheduler
 
wrapper(AsyncSupplier<T>) - Method in class io.activej.promise.jmx.PromiseStats
 
write(FileChannel, long, byte[], int, int) - Method in interface io.activej.async.file.AsyncFileService
 
write(FileChannel, long, byte[], int, int) - Method in class io.activej.async.file.ExecutorAsyncFileService
 
A B C D E F G I L M N O P R S T U W 
All Classes All Packages