Index
All Classes and Interfaces|All Packages
A
- AbstractAsyncCloseable - Class in io.activej.async.process
- AbstractAsyncCloseable() - Constructor for class io.activej.async.process.AbstractAsyncCloseable
- AbstractPromise<T> - Class in io.activej.promise
- AbstractPromise() - Constructor for class io.activej.promise.AbstractPromise
- AbstractPromise.EitherPromise<T> - Class in io.activej.promise
- AbstractPromise.PromiseBoth<T> - Class in io.activej.promise
- AbstractPromise.PromiseCombine<T,
V, U> - Class in io.activej.promise - accept(T) - Method in interface io.activej.async.function.AsyncConsumer
-
Consumes some data asynchronously.
- accept(T) - Method in interface io.activej.async.function.AsyncConsumerEx
-
Consumes some data asynchronously.
- accept(T, Exception) - Method in interface io.activej.promise.SettableCallback
- accept(T, U) - Method in interface io.activej.async.function.AsyncBiConsumer
- accept(T, U) - Method in interface io.activej.async.function.AsyncBiConsumerEx
- acceptNext(T, Exception) - Method in class io.activej.promise.AbstractPromise.EitherPromise
- acceptNext(T, Exception) - Method in class io.activej.promise.AbstractPromise.PromiseBoth
- acceptNext(T, Exception) - Method in class io.activej.promise.AbstractPromise.PromiseCombine
- acceptNext(T, Exception) - Method in class io.activej.promise.NextPromise
- acceptOther(U, Exception) - Method in class io.activej.promise.AbstractPromise.PromiseCombine
- add(BiConsumer<A, V>, FunctionEx<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>, BiConsumerEx<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
Promisethat completes when all of thepromisesare completed. - all(List<? extends Promise<?>>) - Static method in class io.activej.promise.Promises
-
Returns a
Promisethat completes when all of thepromisesare completed. - all(Stream<? extends Promise<?>>) - Static method in class io.activej.promise.Promises
- alwaysFalse() - Static method in interface io.activej.async.function.AsyncBiPredicate
-
Returns an
AsyncBiPredicatethat always returns promise offalse - alwaysFalse() - Static method in interface io.activej.async.function.AsyncPredicate
-
Returns an
AsyncPredicatethat always returns promise offalse - alwaysTrue() - Static method in interface io.activej.async.function.AsyncBiPredicate
-
Returns an
AsyncBiPredicatethat always returns promise oftrue - alwaysTrue() - Static method in interface io.activej.async.function.AsyncPredicate
-
Returns an
AsyncPredicatethat always returns promise oftrue - and() - Static method in class io.activej.async.function.AsyncBiPredicates
-
Returns an
AsyncBiPredicatethat always returns promise oftrue - and() - Static method in class io.activej.async.function.AsyncPredicates
-
Returns an
AsyncPredicatethat always returns promise oftrue - and(AsyncBiPredicate<? super T, ? super U>) - Method in interface io.activej.async.function.AsyncBiPredicate
-
Returns a composed
AsyncBiPredicatethat represents a logical AND of this asynchronous predicate and the other - and(AsyncBiPredicate<? super T, ? super U>) - Static method in class io.activej.async.function.AsyncBiPredicates
-
Returns a given asynchronous predicate
- and(AsyncBiPredicate<? super T, ? super U>...) - Static method in class io.activej.async.function.AsyncBiPredicates
-
Returns a composed
AsyncBiPredicatethat represents a logical AND of all predicates in a given array - and(AsyncBiPredicate<? super T, ? super U>, AsyncBiPredicate<? super T, ? super U>) - Static method in class io.activej.async.function.AsyncBiPredicates
-
An optimization for
AsyncBiPredicates.and(AsyncBiPredicate[]) - and(AsyncPredicate<? super T>) - Method in interface io.activej.async.function.AsyncPredicate
-
Returns a composed
AsyncPredicatethat represents a logical AND of this asynchronous predicate and the other - and(AsyncPredicate<? super T>) - Static method in class io.activej.async.function.AsyncPredicates
-
Returns a given asynchronous predicate
- and(AsyncPredicate<? super T>...) - Static method in class io.activej.async.function.AsyncPredicates
-
Returns a composed
AsyncPredicatethat represents a logical AND of all predicates in a given array - and(AsyncPredicate<? super T>, AsyncPredicate<? super T>) - Static method in class io.activej.async.function.AsyncPredicates
-
An optimization for
AsyncPredicates.and(AsyncPredicate[]) - and(Collection<AsyncBiPredicate<? super T, ? super U>>) - Static method in class io.activej.async.function.AsyncBiPredicates
-
Returns a composed
AsyncBiPredicatethat represents a logical AND of all predicates in a given collection - and(Collection<AsyncPredicate<? super T>>) - Static method in class io.activej.async.function.AsyncPredicates
-
Returns a composed
AsyncPredicatethat represents a logical AND of all predicates in a given collection - any() - Static method in class io.activej.promise.Promises
-
Returns a
CompleteExceptionallyPromisewithException, since this method doesn't accept anyPromises - 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<? super T, Exception>, Promise<? extends T>) - Static method in class io.activej.promise.Promises
- any(BiPredicate<? super T, Exception>, Promise<? extends T>...) - Static method in class io.activej.promise.Promises
- any(BiPredicate<? super T, Exception>, Promise<? extends T>, Promise<? extends T>) - Static method in class io.activej.promise.Promises
- any(BiPredicate<? super T, Exception>, Iterator<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
- any(BiPredicate<? super T, Exception>, List<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
- any(BiPredicate<? super T, Exception>, 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
- apply(T) - Method in interface io.activej.async.function.AsyncFunction
- apply(T) - Method in interface io.activej.async.function.AsyncFunctionEx
- apply(T, SettableCallback<R>) - Method in interface io.activej.async.function.CallbackFunction
- apply(T, SettableCallback<R>) - Method in interface io.activej.async.function.CallbackFunctionEx
- apply(T, U) - Method in interface io.activej.async.function.AsyncBiFunction
- apply(T, U) - Method in interface io.activej.async.function.AsyncBiFunctionEx
- apply(T, U, SettableCallback<R>) - Method in interface io.activej.async.function.CallbackBiFunction
- apply(T, U, SettableCallback<R>) - Method in interface io.activej.async.function.CallbackBiFunctionEx
- asPromises(AsyncSupplier<? extends T>...) - Static method in class io.activej.promise.Promises
- asPromises(Iterable<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
- asPromises(Iterator<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
- asPromises(Stream<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
- async() - Method in class io.activej.promise.AbstractPromise
- 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
Promisecompletes asynchronously: if thisPromiseis already completed, its completion will be posted to the next reactor tick. - AsyncAccumulator<A> - Class in io.activej.async
- AsyncAccumulator.Builder - Class in io.activej.async
- AsyncBiConsumer<T,
U> - Interface in io.activej.async.function - AsyncBiConsumerEx<T,
U> - Interface in io.activej.async.function - AsyncBiConsumers - Class in io.activej.async.function
- AsyncBiConsumers() - Constructor for class io.activej.async.function.AsyncBiConsumers
- AsyncBiFunction<T,
U, R> - Interface in io.activej.async.function - AsyncBiFunctionEx<T,
U, R> - Interface in io.activej.async.function - AsyncBiFunctions - Class in io.activej.async.function
- AsyncBiFunctions() - Constructor for class io.activej.async.function.AsyncBiFunctions
- AsyncBiPredicate<T,
U> - Interface in io.activej.async.function - AsyncBiPredicateEx<T,
U> - Interface in io.activej.async.function - AsyncBiPredicates - Class in io.activej.async.function
- AsyncBiPredicates() - Constructor for class io.activej.async.function.AsyncBiPredicates
- AsyncBuffer<A,
R> - Class in io.activej.async - AsyncBuffer(AsyncFunction<A, 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.
- AsyncConsumerEx<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
- AsyncFunction<T,
R> - Interface in io.activej.async.function - AsyncFunctionEx<T,
R> - Interface in io.activej.async.function - AsyncFunctions - Class in io.activej.async.function
- AsyncFunctions() - Constructor for class io.activej.async.function.AsyncFunctions
- AsyncPredicate<T> - Interface in io.activej.async.function
- AsyncPredicateEx<T> - Interface in io.activej.async.function
- AsyncPredicates - Class in io.activej.async.function
- AsyncPredicates() - Constructor for class io.activej.async.function.AsyncPredicates
- AsyncRunnable - Interface in io.activej.async.function
- AsyncRunnableEx - Interface in io.activej.async.function
- AsyncRunnables - Class in io.activej.async.function
- AsyncRunnables() - Constructor for class io.activej.async.function.AsyncRunnables
- AsyncSupplier<T> - Interface in io.activej.async.function
-
Represents asynchronous supplier that returns
Promiseof some data. - AsyncSupplierEx<T> - Interface in io.activej.async.function
-
Represents asynchronous supplier that returns
Promiseof 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.AbstractPromise
- 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
Promisewhen both this and providedotherPromisescomplete. - buffer(int, int, AsyncBiConsumer<T, U>) - Static method in class io.activej.async.function.AsyncBiConsumers
- buffer(int, int, AsyncBiFunction<T, U, R>) - Static method in class io.activej.async.function.AsyncBiFunctions
- buffer(int, int, AsyncBiPredicate<T, U>) - Static method in class io.activej.async.function.AsyncBiPredicates
- buffer(int, int, AsyncConsumer<T>) - Static method in class io.activej.async.function.AsyncConsumers
- buffer(int, int, AsyncFunction<T, R>) - Static method in class io.activej.async.function.AsyncFunctions
- buffer(int, int, AsyncPredicate<T>) - Static method in class io.activej.async.function.AsyncPredicates
- buffer(int, int, AsyncRunnable) - Static method in class io.activej.async.function.AsyncRunnables
- buffer(int, int, AsyncSupplier<T>) - Static method in class io.activej.async.function.AsyncSuppliers
- buffer(AsyncBiConsumer<T, U>) - Static method in class io.activej.async.function.AsyncBiConsumers
- buffer(AsyncBiFunction<T, U, R>) - Static method in class io.activej.async.function.AsyncBiFunctions
- buffer(AsyncBiPredicate<T, U>) - Static method in class io.activej.async.function.AsyncBiPredicates
- buffer(AsyncConsumer<T>) - Static method in class io.activej.async.function.AsyncConsumers
- buffer(AsyncFunction<T, R>) - Static method in class io.activej.async.function.AsyncFunctions
- buffer(AsyncPredicate<T>) - Static method in class io.activej.async.function.AsyncPredicates
- buffer(AsyncRunnable) - Static method in class io.activej.async.function.AsyncRunnables
- 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
- builder(A) - Static method in class io.activej.async.AsyncAccumulator
- builder(Reactor, AsyncSupplier<T>) - Static method in class io.activej.async.service.TaskScheduler
- builder(Reactor, Duration) - Static method in class io.activej.promise.jmx.PromiseStats
- builder(Duration) - Static method in class io.activej.promise.jmx.PromiseStats
- Builder() - Constructor for class io.activej.promise.jmx.PromiseStats.Builder
C
- call(Callback<? super T>) - Method in interface io.activej.promise.Promise
- call(Callable<T>) - Method in interface io.activej.async.process.AsyncExecutor
- CallbackBiFunction<T,
U, R> - Interface in io.activej.async.function - CallbackBiFunctionEx<T,
U, R> - Interface in io.activej.async.function - CallbackFunction<T,
R> - Interface in io.activej.async.function - CallbackFunctionEx<T,
R> - Interface in io.activej.async.function - CallbackSupplier<R> - Interface in io.activej.async.function
- CallbackSupplierEx<R> - Interface in io.activej.async.function
- cancelBufferedPromise(Exception) - Method in class io.activej.async.AsyncBuffer
- cast() - Method in interface io.activej.promise.Promise
-
Casts
thispromise to a promise of some other typePromise - cast(Class<? extends U>) - Method in interface io.activej.promise.Promise
-
Casts
thispromise to a promise of some other typePromise - close() - Method in interface io.activej.async.process.AsyncCloseable
-
Cancels the process.
- closeEx(Exception) - Method in class io.activej.async.AsyncAccumulator
- closeEx(Exception) - Method in class io.activej.async.process.AbstractAsyncCloseable
- closeEx(Exception) - Method in interface io.activej.async.process.AsyncCloseable
-
Closes process exceptionally in case an exception is thrown while executing the given process.
- coalesce(AsyncRunnable) - Static method in class io.activej.async.function.AsyncRunnables
- coalesce(AsyncSupplier<T>) - Static method in class io.activej.async.function.AsyncSuppliers
- coalesce(Supplier<A>, BiConsumer<A, T>, AsyncFunction<A, R>) - Static method in class io.activej.promise.Promises
- combine(Promise<? extends U>, BiFunctionEx<? super T, ? super U, ? extends V>) - Method in class io.activej.promise.AbstractPromise
- combine(Promise<? extends U>, BiFunctionEx<? super T, ? super U, ? extends V>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- combine(Promise<? extends U>, BiFunctionEx<? super T, ? super U, ? extends V>) - Method in class io.activej.promise.CompletePromise
- combine(Promise<? extends U>, BiFunctionEx<? super T, ? super U, ? extends V>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisethat, when this and the other givenPromiseboth 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
- complete(T) - Method in class io.activej.promise.AbstractPromise
- complete(T, Exception) - Method in class io.activej.promise.AbstractPromise
- completeExceptionally(Exception) - Method in class io.activej.promise.AbstractPromise
- CompleteExceptionallyPromise<T> - Class in io.activej.promise
-
Represents a
Promisewhich is completed with an exception. - CompleteExceptionallyPromise(Exception) - Constructor for class io.activej.promise.CompleteExceptionallyPromise
- CompleteNullPromise<T> - Class in io.activej.promise
-
Represents a
CompletePromisewith result that equalsnull. - CompletePromise<T> - Class in io.activej.promise
-
Represents a completed
Promisewith a result of unspecified type. - CompletePromise() - Constructor for class io.activej.promise.CompletePromise
- CompleteResultPromise<T> - Class in io.activej.promise
-
Represents a
CompletePromisewith 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(Duration) - Static method in class io.activej.promise.jmx.PromiseStats
- createMBean(Reactor, 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
promisefor the defined period of time. - delay(long, T) - Static method in class io.activej.promise.Promises
- delay(ReactorScheduler, long) - Static method in class io.activej.promise.Promises
- delay(ReactorScheduler, long, Promise<T>) - Static method in class io.activej.promise.Promises
- delay(ReactorScheduler, long, T) - Static method in class io.activej.promise.Promises
- delay(ReactorScheduler, Duration) - Static method in class io.activej.promise.Promises
- delay(ReactorScheduler, Duration, Promise<T>) - Static method in class io.activej.promise.Promises
- delay(ReactorScheduler, Duration, 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.AbstractPromise
- describe() - Method in class io.activej.promise.AbstractPromise.EitherPromise
- describe() - Method in class io.activej.promise.AbstractPromise.PromiseBoth
- describe() - Method in class io.activej.promise.AbstractPromise.PromiseCombine
- describe() - Method in class io.activej.promise.SettablePromise
- direct() - Static method in class io.activej.async.process.AsyncExecutors
- doBuild() - Method in class io.activej.async.AsyncAccumulator.Builder
- doBuild() - Method in class io.activej.async.service.TaskScheduler.Builder
- doBuild() - Method in class io.activej.promise.jmx.PromiseStats.Builder
- doCreateRetryState() - Method in class io.activej.promise.RetryPolicy.DelegatingRetryPolicy
- doSanitize(T, Exception) - Method in class io.activej.async.process.AbstractAsyncCloseable
E
- either(Promise<? extends T>) - Method in class io.activej.promise.AbstractPromise
- 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
Promisewhich was completed first. - EitherPromise() - Constructor for class io.activej.promise.AbstractPromise.EitherPromise
- exception - Variable in class io.activej.promise.AbstractPromise
- execute(AsyncSupplier<T>) - Method in interface io.activej.async.process.AsyncExecutor
- ExecutorFileService - Class in io.activej.async.file
- ExecutorFileService(Reactor, Executor) - Constructor for class io.activej.async.file.ExecutorFileService
- 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(AsyncSupplier<? extends T>...) - Static method in class io.activej.promise.Promises
-
Picks the first
Promisethat was completed without exception. - first(Iterable<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
- first(BiPredicate<? super T, ? super Exception>, AsyncSupplier<? extends T>...) - Static method in class io.activej.promise.Promises
- first(BiPredicate<? super T, ? super Exception>, Iterable<? extends AsyncSupplier<? extends T>>) - Static method in class io.activej.promise.Promises
- first(BiPredicate<? super T, ? super Exception>, Iterator<? extends Promise<? extends T>>) - Static method in class io.activej.promise.Promises
- first(BiPredicate<? super T, ? super Exception>, 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
- 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
Promiseof data item asynchronously. - get() - Method in interface io.activej.async.function.AsyncSupplierEx
-
Gets
Promiseof data item asynchronously. - get(SettableCallback<R>) - Method in interface io.activej.async.function.CallbackSupplier
- get(SettableCallback<R>) - Method in interface io.activej.async.function.CallbackSupplierEx
- 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
- getCloseable() - Method in class io.activej.async.process.AbstractAsyncCloseable
- getCurrentDuration() - Method in class io.activej.promise.jmx.PromiseStats
- getDuration() - Method in class io.activej.promise.jmx.PromiseStats
- getException() - Method in class io.activej.async.process.AbstractAsyncCloseable
- getException() - Method in class io.activej.promise.AbstractPromise
- 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.TaskScheduler
- getInterval() - Method in class io.activej.async.service.TaskScheduler
- getLastCompleteTime() - Method in class io.activej.promise.jmx.PromiseStats
- getLastException() - Method in class io.activej.async.service.TaskScheduler
- getLastStartTime() - Method in class io.activej.promise.jmx.PromiseStats
- getPeriod() - Method in class io.activej.async.service.TaskScheduler
- getProcessCompletion() - Method in interface io.activej.async.process.ReactiveProcess
- getPromise() - Method in class io.activej.promise.ResultWithPromise
- getResult() - Method in class io.activej.promise.AbstractPromise
- getResult() - Method in class io.activej.promise.CompleteExceptionallyPromise
- getResult() - Method in class io.activej.promise.CompleteNullPromise
- 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.TaskScheduler
- getTry() - Method in class io.activej.promise.AbstractPromise
- 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
- IFileService - Interface in io.activej.async.file
- immediate() - Static method in interface io.activej.async.service.TaskScheduler.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(ReactorScheduler, long, Promise<T>) - Static method in class io.activej.promise.Promises
- interval(ReactorScheduler, Duration, 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.AbstractPromise
- isComplete() - Method in class io.activej.promise.CompleteExceptionallyPromise
- isComplete() - Method in class io.activej.promise.CompletePromise
- isComplete() - Method in interface io.activej.promise.Promise
- isComplete() - Static method in class io.activej.promise.PromisePredicates
- isComplete() - Method in interface io.activej.promise.SettableCallback
- isEnabled() - Method in class io.activej.async.service.TaskScheduler
- isException() - Method in class io.activej.promise.AbstractPromise
- isException() - Method in class io.activej.promise.CompleteExceptionallyPromise
- isException() - Method in class io.activej.promise.CompletePromise
- isException() - Method in interface io.activej.promise.Promise
- isException() - Static method in class io.activej.promise.PromisePredicates
- isException(Class<? extends Exception>) - Static method in class io.activej.promise.PromisePredicates
- isException(Predicate<Exception>) - Static method in class io.activej.promise.PromisePredicates
- isResult() - Method in class io.activej.promise.AbstractPromise
- 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.PromisePredicates
- isResult(Predicate<? super T>) - Static method in class io.activej.promise.PromisePredicates
- isResultOrException(Predicate<? super T>) - Static method in class io.activej.promise.PromisePredicates
L
- lastError - Variable in class io.activej.promise.RetryPolicy.SimpleRetryState
- loop(T, Predicate<T>, FunctionEx<T, Promise<T>>) - Static method in class io.activej.promise.Promises
-
Repeats provided
FunctionExuntil can passPredicatetest.
M
- map(BiFunctionEx<? super T, Exception, ? extends U>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisewhich is obtained by mapping a result and an exception ofthispromise to some other value. - map(BiFunctionEx<? super T, Exception, ? extends U>) - Method in class io.activej.promise.AbstractPromise
- map(BiFunctionEx<? super T, Exception, ? extends U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- map(BiFunctionEx<? super T, Exception, ? extends U>) - Method in class io.activej.promise.CompletePromise
- map(FunctionEx<? super T, ? extends U>) - Method in class io.activej.promise.AbstractPromise
- map(FunctionEx<? super T, ? extends U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- map(FunctionEx<? super T, ? extends U>) - Method in class io.activej.promise.CompletePromise
- map(FunctionEx<? super T, ? extends U>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisewhich is obtained by mapping a result ofthispromise to some other value. - map(FunctionEx<? super T, ? extends U>, FunctionEx<Exception, ? extends U>) - Method in class io.activej.promise.AbstractPromise
- map(FunctionEx<? super T, ? extends U>, FunctionEx<Exception, ? extends U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- map(FunctionEx<? super T, ? extends U>, FunctionEx<Exception, ? extends U>) - Method in class io.activej.promise.CompletePromise
- map(FunctionEx<? super T, ? extends U>, FunctionEx<Exception, ? extends U>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisewhich is obtained by mapping either a result or an exception ofthispromise to some other values. - mapException(FunctionEx<Exception, Exception>) - Method in class io.activej.promise.AbstractPromise
- mapException(FunctionEx<Exception, Exception>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- mapException(FunctionEx<Exception, Exception>) - Method in class io.activej.promise.CompletePromise
- mapException(FunctionEx<Exception, Exception>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisewhich is obtained by mapping an exception ofthispromise to some other exception. - mapException(Class<E>, FunctionEx<? super E, ? extends Exception>) - Method in class io.activej.promise.AbstractPromise
- mapException(Class<E>, FunctionEx<? super E, ? extends Exception>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- mapException(Class<E>, FunctionEx<? super E, ? extends Exception>) - Method in class io.activej.promise.CompletePromise
- mapException(Class<E>, FunctionEx<? super E, ? extends Exception>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisewhich is obtained by mapping an exception ofthispromise to some other exception. - mapTuple(TupleConstructor1<R1, R>, Function<? super T, T1>, Function<T1, Promise<R1>>) - Static method in class io.activej.promise.Promises
- mapTuple(TupleConstructor2<R1, R2, R>, Function<? super T, T1>, Function<T1, Promise<R1>>, Function<? super T, T2>, Function<T2, Promise<R2>>) - Static method in class io.activej.promise.Promises
- mapTuple(TupleConstructor3<R1, R2, R3, R>, Function<? super T, T1>, Function<T1, Promise<R1>>, Function<? super T, T2>, Function<T2, Promise<R2>>, Function<? super T, T3>, Function<T3, Promise<R3>>) - Static method in class io.activej.promise.Promises
- mapTuple(TupleConstructor4<R1, R2, R3, R4, R>, Function<? super T, T1>, Function<T1, Promise<R1>>, Function<? super T, T2>, Function<T2, Promise<R2>>, Function<? super T, T3>, Function<T3, Promise<R3>>, Function<? super T, T4>, Function<T4, Promise<R4>>) - Static method in class io.activej.promise.Promises
- mapTuple(TupleConstructor5<R1, R2, R3, R4, R5, R>, Function<? super T, T1>, Function<T1, Promise<R1>>, Function<? super T, T2>, Function<T2, Promise<R2>>, Function<? super T, T3>, Function<T3, Promise<R3>>, Function<? super T, T4>, Function<T4, Promise<R4>>, Function<? super T, T5>, Function<T5, 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, Promise<R1>>, Function<? super T, T2>, Function<T2, Promise<R2>>, Function<? super T, T3>, Function<T3, Promise<R3>>, Function<? super T, T4>, Function<T4, Promise<R4>>, Function<? super T, T5>, Function<T5, Promise<R5>>, Function<? super T, T6>, Function<T6, 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.AsyncBiPredicate
-
Negates
thisAsyncBiPredicate - negate() - Method in interface io.activej.async.function.AsyncPredicate
-
Negates
thisAsyncPredicate - newPromise(BiConsumerEx<A, V>) - Method in class io.activej.async.AsyncAccumulator
- next - Variable in class io.activej.promise.AbstractPromise
- next(NextPromise<? super T, ?>) - Method in class io.activej.promise.AbstractPromise
- next(NextPromise<? super T, ?>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- next(NextPromise<? super T, ?>) - Method in class io.activej.promise.CompletePromise
- next(NextPromise<? super T, ?>) - Method in interface io.activej.promise.Promise
-
Calls a
callbackafterthispromise is completed, passing both a result and an exception of a promise to the callback. - 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, Exception, int, long) - Method in class io.activej.promise.RetryPolicy.SimpleRetryPolicy
- nextRetryTimestamp(long, Exception, Tuple2<S, DS>) - Method in class io.activej.promise.RetryPolicy.DelegatingRetryPolicy
- nextRetryTimestamp(long, Exception, RetryPolicy.SimpleRetryState) - Method in class io.activej.promise.RetryPolicy.SimpleRetryPolicy
- nextRetryTimestamp(long, Exception, S) - Method in interface io.activej.promise.RetryPolicy
- nextRetryTimestamp(long, Exception, S, DS) - Method in class io.activej.promise.RetryPolicy.DelegatingRetryPolicy
- nextTimestamp(long, long, long) - Method in interface io.activej.async.service.TaskScheduler.Schedule
- noRetry() - Static method in interface io.activej.promise.RetryPolicy
- not(AsyncBiPredicate<? super T, ? super U>) - Static method in interface io.activej.async.function.AsyncBiPredicate
-
Negates a given
AsyncBiPredicate - not(AsyncPredicate<? super T>) - Static method in interface io.activej.async.function.AsyncPredicate
-
Negates a given
AsyncPredicate
O
- of(BiConsumerEx<? super T, ? super U>) - Static method in interface io.activej.async.function.AsyncBiConsumer
-
Wraps a
BiConsumerExinterface. - of(BiFunctionEx<? super T, ? super U, ? extends R>) - Static method in interface io.activej.async.function.AsyncBiFunction
-
Wraps a
BiFunctionExinterface. - of(BiPredicateEx<? super T, ? super U>) - Static method in interface io.activej.async.function.AsyncBiPredicate
-
Wraps a
BiPredicateExinterface. - of(ConsumerEx<? super T>) - Static method in interface io.activej.async.function.AsyncConsumer
-
Wraps a
ConsumerExinterface. - of(FunctionEx<? super T, ? extends R>) - Static method in interface io.activej.async.function.AsyncFunction
-
Wraps a
FunctionExinterface. - of(PredicateEx<T>) - Static method in interface io.activej.async.function.AsyncPredicate
-
Wraps a
PredicateExinterface. - of(RunnableEx) - Static method in interface io.activej.async.function.AsyncRunnable
-
Wraps a
RunnableExinterface. - of(SupplierEx<T>) - Static method in interface io.activej.async.function.AsyncSupplier
-
Wraps a
SupplierExinterface. - of(Consumer<Exception>) - Static method in interface io.activej.async.process.AsyncCloseable
- of(T) - Static method in interface io.activej.promise.Promise
-
Creates successfully completed
Promise. - of(T, Exception) - Static method in interface io.activej.promise.Promise
-
Creates a completed
PromisefromT valueandException eparameters, any of them can benull. - of(T, Promise<V>) - Static method in class io.activej.promise.ResultWithPromise
- ofBlocking(Executor, RunnableEx) - Static method in interface io.activej.promise.Promise
-
Same as
Promise.ofBlocking(Executor, SupplierEx), but without a result (returnedPromiseis only a marker of completion). - ofBlocking(Executor, SupplierEx<? extends T>) - Static method in interface io.activej.promise.Promise
-
Runs some task in another thread (executed by a given
Executor) and returns aPromisefor it. - ofCallback(CallbackSupplierEx<T>) - Static method in interface io.activej.promise.Promise
-
Creates and returns a new
SettablePromisethat is accepted by the providedConsumerExofSettablePromise - ofCallback(T, Exception, CallbackBiFunctionEx<? super T, Exception, R>) - Static method in interface io.activej.promise.Promise
- ofCallback(T, Exception, CallbackFunctionEx<? super T, R>, CallbackFunctionEx<Exception, R>) - Static method in interface io.activej.promise.Promise
- ofCallback(T, CallbackFunctionEx<? super T, R>) - Static method in interface io.activej.promise.Promise
- ofCompletionStage(CompletionStage<? extends T>) - Static method in interface io.activej.promise.Promise
-
Wraps Java
CompletionStagein aPromise, running it in current reactor. - ofDelay(long) - Static method in interface io.activej.async.service.TaskScheduler.Schedule
-
Schedules a task after delay.
- ofDelay(Duration) - Static method in interface io.activej.async.service.TaskScheduler.Schedule
-
Schedules a task after delay.
- ofException(Exception) - Static method in interface io.activej.promise.Promise
-
Creates an exceptionally completed
Promise. - ofExecutor(AsyncExecutor, AsyncBiConsumer<T, U>) - Static method in class io.activej.async.function.AsyncBiConsumers
- ofExecutor(AsyncExecutor, AsyncBiFunction<T, U, R>) - Static method in class io.activej.async.function.AsyncBiFunctions
- ofExecutor(AsyncExecutor, AsyncBiPredicate<T, U>) - Static method in class io.activej.async.function.AsyncBiPredicates
- ofExecutor(AsyncExecutor, AsyncConsumer<T>) - Static method in class io.activej.async.function.AsyncConsumers
- ofExecutor(AsyncExecutor, AsyncFunction<T, R>) - Static method in class io.activej.async.function.AsyncFunctions
- ofExecutor(AsyncExecutor, AsyncPredicate<T>) - Static method in class io.activej.async.function.AsyncPredicates
- ofExecutor(AsyncExecutor, AsyncRunnable) - Static method in class io.activej.async.function.AsyncRunnables
- ofExecutor(AsyncExecutor, AsyncSupplier<T>) - Static method in class io.activej.async.function.AsyncSuppliers
- ofFuture(CompletableFuture<? extends T>) - Static method in interface io.activej.promise.Promise
-
Creates a
Promisewrapper around default JavaCompletableFutureand runs it immediately. - ofFuture(Executor, Future<? extends T>) - Static method in interface io.activej.promise.Promise
- ofInterval(long) - Static method in interface io.activej.async.service.TaskScheduler.Schedule
-
Schedules a task after last complete time and next task.
- ofInterval(Duration) - Static method in interface io.activej.async.service.TaskScheduler.Schedule
-
Schedules a task after last complete time and next task.
- ofMaxRecursiveCalls(int) - Static method in class io.activej.async.process.AsyncExecutors
- ofOptional(Optional<T>) - Static method in interface io.activej.promise.Promise
-
Creates a new
Promiseof the given value - ofOptional(Optional<T>, Supplier<? extends Exception>) - Static method in interface io.activej.promise.Promise
-
Creates a new
Promiseof the given value. - ofPeriod(long) - Static method in interface io.activej.async.service.TaskScheduler.Schedule
-
Schedules a task in a period of current and next task.
- ofPeriod(Duration) - Static method in interface io.activej.async.service.TaskScheduler.Schedule
-
Schedules a task in a period of current and next task.
- ofReactor(Reactor) - Static method in class io.activej.async.process.AsyncExecutors
- ofTry(Try<T>) - Static method in interface io.activej.promise.Promise
- onCleanup() - Method in class io.activej.async.process.AbstractAsyncCloseable
- onClosed(Exception) - Method in class io.activej.async.process.AbstractAsyncCloseable
- or() - Static method in class io.activej.async.function.AsyncBiPredicates
-
Returns an
AsyncBiPredicatethat always returns promise offalse - or() - Static method in class io.activej.async.function.AsyncPredicates
- or(AsyncBiPredicate<? super T, ? super U>) - Method in interface io.activej.async.function.AsyncBiPredicate
-
Returns a composed
AsyncBiPredicatethat represents a logical OR of this asynchronous predicate and the other - or(AsyncBiPredicate<? super T, ? super U>) - Static method in class io.activej.async.function.AsyncBiPredicates
-
Returns a given asynchronous predicate
- or(AsyncBiPredicate<? super T, ? super U>...) - Static method in class io.activej.async.function.AsyncBiPredicates
-
Returns a composed
AsyncBiPredicatethat represents a logical OR of all predicates in a given array - or(AsyncBiPredicate<? super T, ? super U>, AsyncBiPredicate<? super T, ? super U>) - Static method in class io.activej.async.function.AsyncBiPredicates
-
An optimization for
AsyncBiPredicates.or(AsyncBiPredicate[]) - or(AsyncPredicate<? super T>) - Method in interface io.activej.async.function.AsyncPredicate
-
Returns a composed
AsyncPredicatethat represents a logical OR of this asynchronous predicate and the other - or(AsyncPredicate<? super T>) - Static method in class io.activej.async.function.AsyncPredicates
-
Returns a given asynchronous predicate
- or(AsyncPredicate<? super T>...) - Static method in class io.activej.async.function.AsyncPredicates
-
Returns a composed
AsyncPredicatethat represents a logical OR of all predicates in a given array - or(AsyncPredicate<? super T>, AsyncPredicate<? super T>) - Static method in class io.activej.async.function.AsyncPredicates
-
An optimization for
AsyncPredicates.or(AsyncPredicate[]) - or(Collection<AsyncBiPredicate<? super T, ? super U>>) - Static method in class io.activej.async.function.AsyncBiPredicates
-
Returns a composed
AsyncBiPredicatethat represents a logical OR of all predicates in a given collection - or(Collection<AsyncPredicate<? super T>>) - Static method in class io.activej.async.function.AsyncPredicates
-
Returns a composed
AsyncPredicatethat represents a logical OR of all predicates in a given collection
P
- 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
- Promise<T> - Interface in io.activej.promise
-
Replacement of default Java
CompletionStageinterface with optimized design, which allows handling different scenarios more efficiently. - PromiseBoth() - Constructor for class io.activej.promise.AbstractPromise.PromiseBoth
- PromisePredicates - Class in io.activej.promise
- PromisePredicates() - Constructor for class io.activej.promise.PromisePredicates
- Promises - Class in io.activej.promise
-
Allows managing multiple
Promises. - Promises() - Constructor for class io.activej.promise.Promises
- PromiseStats - Class in io.activej.promise.jmx
-
Allows tracking stats of
Promises. - PromiseStats(Reactor, ValueStats) - Constructor for class io.activej.promise.jmx.PromiseStats
- PromiseStats.Builder - Class in io.activej.promise.jmx
R
- ReactiveProcess - Interface in io.activej.async.process
- ReactiveService - Interface in io.activej.async.service
-
This interface is for services that can be started and then stopped in the context of reactor, so it works with
Promise - read(FileChannel, long, byte[], int, int) - Method in class io.activej.async.file.ExecutorFileService
- read(FileChannel, long, byte[], int, int) - Method in interface io.activej.async.file.IFileService
- recordStats() - Method in class io.activej.promise.jmx.PromiseStats
- recycleToVoid(Object) - Static method in class io.activej.promise.AbstractPromise
- reduce(A, BiConsumerEx<A, T>, FunctionEx<A, R>, int, Iterator<Promise<T>>) - Static method in class io.activej.promise.Promises
- reduce(A, BiConsumerEx<A, T>, FunctionEx<A, R>, Collection<Promise<T>>) - Static method in class io.activej.promise.Promises
- reduce(A, BiConsumerEx<A, T>, FunctionEx<A, R>, Iterator<Promise<T>>) - Static method in class io.activej.promise.Promises
- reduce(A, BiConsumerEx<A, T>, FunctionEx<A, R>, Stream<Promise<T>>) - Static method in class io.activej.promise.Promises
- reduce(Collector<T, A, R>, int, Iterator<Promise<T>>) - Static method in class io.activej.promise.Promises
- repeat(AsyncSupplier<Boolean>) - Static method in class io.activej.promise.Promises
-
Repeats the operations of provided
AsyncSupplier<Boolean>infinitely, until one of thePromises completes exceptionally or supplier returns a promise offalse. - reset() - Method in class io.activej.promise.AbstractPromise
- resetCallbacks() - Method in class io.activej.promise.AbstractPromise
- resetStats() - Method in class io.activej.async.service.TaskScheduler
- result - Variable in class io.activej.promise.AbstractPromise
- ResultWithPromise<T,
V> - Class in io.activej.promise - 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, Exception>, RetryPolicy<?>) - Static method in class io.activej.promise.Promises
- retry(RetryPolicy<?>) - Static method in class io.activej.async.process.AsyncExecutors
- retry(BiPredicate<? super T, Exception>, 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(AsyncRunnable) - Static method in class io.activej.async.function.AsyncRunnables
- 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.async.function.AsyncRunnable
- run() - Method in interface io.activej.async.function.AsyncRunnableEx
- run(Promise<Void>) - Method in class io.activej.async.AsyncAccumulator
- run(Runnable) - Method in interface io.activej.async.process.AsyncExecutor
S
- sanitize(AsyncBiConsumerEx<? super T, U>) - Static method in interface io.activej.async.function.AsyncBiConsumer
- sanitize(AsyncBiFunctionEx<? super T, ? super U, R>) - Static method in interface io.activej.async.function.AsyncBiFunction
- sanitize(AsyncBiPredicateEx<? super T, ? super U>) - Static method in interface io.activej.async.function.AsyncBiPredicate
- sanitize(AsyncConsumerEx<? super T>) - Static method in interface io.activej.async.function.AsyncConsumer
- sanitize(AsyncFunctionEx<? super T, R>) - Static method in interface io.activej.async.function.AsyncFunction
- sanitize(AsyncPredicateEx<T>) - Static method in interface io.activej.async.function.AsyncPredicate
- sanitize(AsyncRunnableEx) - Static method in interface io.activej.async.function.AsyncRunnable
- sanitize(AsyncSupplierEx<T>) - Static method in interface io.activej.async.function.AsyncSupplier
- sanitize(Promise<T>) - Method in class io.activej.async.process.AbstractAsyncCloseable
- schedule(long) - Static method in class io.activej.promise.Promises
- schedule(long, Promise<T>) - Static method in class io.activej.promise.Promises
-
Schedules completion of the
Promiseso that it will be completed after the timestamp even if its operations were completed earlier. - schedule(long, T) - Static method in class io.activej.promise.Promises
- schedule(ReactorScheduler, long) - Static method in class io.activej.promise.Promises
- schedule(ReactorScheduler, long, Promise<T>) - Static method in class io.activej.promise.Promises
- schedule(ReactorScheduler, long, T) - Static method in class io.activej.promise.Promises
- schedule(ReactorScheduler, Instant) - Static method in class io.activej.promise.Promises
- schedule(ReactorScheduler, Instant, Promise<T>) - Static method in class io.activej.promise.Promises
- schedule(ReactorScheduler, Instant, T) - Static method in class io.activej.promise.Promises
- schedule(Instant) - Static method in class io.activej.promise.Promises
- schedule(Instant, Promise<T>) - Static method in class io.activej.promise.Promises
- schedule(Instant, T) - Static method in class io.activej.promise.Promises
- sequence() - Static method in class io.activej.promise.Promises
-
Returns a
CompleteNullPromise - sequence(AsyncRunnable) - Static method in class io.activej.promise.Promises
-
Executes an
AsyncRunnable, returning aPromise<Void>as a mark for completion - sequence(AsyncRunnable...) - Static method in class io.activej.promise.Promises
- sequence(AsyncRunnable, AsyncRunnable) - Static method in class io.activej.promise.Promises
-
Executes both
AsyncRunnables consequently, returning aPromise<Void>as a mark for completion - sequence(Iterable<? extends AsyncRunnable>) - Static method in class io.activej.promise.Promises
- sequence(Iterator<? extends Promise<Void>>) - Static method in class io.activej.promise.Promises
-
Calls every
Promisefrompromisesin sequence and discards their results.Returns aSettablePromisewithnullresult as a marker when all of thepromisesare completed. - sequence(Stream<? extends AsyncRunnable>) - Static method in class io.activej.promise.Promises
- sequential() - Static method in class io.activej.async.process.AsyncExecutors
- set(R) - Method in class io.activej.promise.NextPromise
- set(R, Exception) - Method in class io.activej.promise.NextPromise
- set(T) - Method in interface io.activej.promise.SettableCallback
- set(T) - Method in class io.activej.promise.SettablePromise
-
Sets the result of this
SettablePromiseand completes it. - set(T, Exception) - Method in interface io.activej.promise.SettableCallback
- set(T, Exception) - Method in class io.activej.promise.SettablePromise
-
Accepts the provided values and performs this operation on them.
- setCloseable(AsyncCloseable) - Method in class io.activej.async.process.AbstractAsyncCloseable
- setEnabled(boolean) - Method in class io.activej.async.service.TaskScheduler
- setException(Exception) - Method in class io.activej.promise.NextPromise
- setException(Exception) - Method in interface io.activej.promise.SettableCallback
- setException(Exception) - Method in class io.activej.promise.SettablePromise
-
Sets exception and completes this
SettablePromiseexceptionally. - 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.TaskScheduler
- setPeriod(Duration) - Method in class io.activej.async.service.TaskScheduler
- setRetryPolicy(RetryPolicy<?>) - Method in class io.activej.async.service.TaskScheduler
- setSchedule(TaskScheduler.Schedule) - Method in class io.activej.async.service.TaskScheduler
- SettableCallback<T> - Interface in io.activej.promise
- SettablePromise<T> - Class in io.activej.promise
-
Represents a
Promisewhich 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.ReactiveService
-
Starts this component asynchronously.
- start() - Method in class io.activej.async.service.TaskScheduler
- startFuture() - Method in interface io.activej.async.service.ReactiveService
- startNow() - Method in class io.activej.async.service.TaskScheduler
- startProcess() - Method in interface io.activej.async.process.ReactiveProcess
- 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.ReactiveService
-
Stops this component asynchronously.
- stop() - Method in class io.activej.async.service.TaskScheduler
- stopFuture() - Method in interface io.activej.async.service.ReactiveService
- subscribe(Callback<? super T>) - Method in class io.activej.promise.AbstractPromise
- subscribe(Callback<? super T>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- subscribe(Callback<? super T>) - Method in class io.activej.promise.CompletePromise
- subscribe(Callback<? super T>) - Method in interface io.activej.promise.Promise
T
- TaskScheduler - Class in io.activej.async.service
- TaskScheduler.Builder - Class in io.activej.async.service
- TaskScheduler.Schedule - Interface in io.activej.async.service
- test(T) - Method in interface io.activej.async.function.AsyncPredicate
- test(T) - Method in interface io.activej.async.function.AsyncPredicateEx
- test(T, U) - Method in interface io.activej.async.function.AsyncBiPredicate
- test(T, U) - Method in interface io.activej.async.function.AsyncBiPredicateEx
- TestUtils - Class in io.activej.promise
- TestUtils() - Constructor for class io.activej.promise.TestUtils
- then(AsyncBiFunctionEx<? super T, Exception, U>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisewhich is obtained by mapping a result and an exception ofthispromise to some other promise. - then(AsyncBiFunctionEx<? super T, Exception, U>) - Method in class io.activej.promise.AbstractPromise
- then(AsyncBiFunctionEx<? super T, Exception, U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- then(AsyncBiFunctionEx<? super T, Exception, U>) - Method in class io.activej.promise.CompletePromise
- then(AsyncFunctionEx<? super T, U>) - Method in class io.activej.promise.AbstractPromise
- then(AsyncFunctionEx<? super T, U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- then(AsyncFunctionEx<? super T, U>) - Method in class io.activej.promise.CompletePromise
- then(AsyncFunctionEx<? super T, U>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisewhich is obtained by mapping a result ofthispromise to some other promise. - then(AsyncFunctionEx<? super T, U>, AsyncFunctionEx<Exception, U>) - Method in class io.activej.promise.AbstractPromise
- then(AsyncFunctionEx<? super T, U>, AsyncFunctionEx<Exception, U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- then(AsyncFunctionEx<? super T, U>, AsyncFunctionEx<Exception, U>) - Method in class io.activej.promise.CompletePromise
- then(AsyncFunctionEx<? super T, U>, AsyncFunctionEx<Exception, U>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisewhich is obtained by mapping either a result or an exception ofthispromise to some other promises. - then(AsyncSupplierEx<U>) - Method in class io.activej.promise.AbstractPromise
- then(AsyncSupplierEx<U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- then(AsyncSupplierEx<U>) - Method in class io.activej.promise.CompletePromise
- then(AsyncSupplierEx<U>) - Method in interface io.activej.promise.Promise
-
Returns a new
Promisewhich is obtained by calling a provided supplier of a new promise. - thenCallback(CallbackBiFunctionEx<? super T, Exception, U>) - Method in class io.activej.promise.AbstractPromise
- thenCallback(CallbackBiFunctionEx<? super T, Exception, U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- thenCallback(CallbackBiFunctionEx<? super T, Exception, U>) - Method in class io.activej.promise.CompletePromise
- thenCallback(CallbackBiFunctionEx<? super T, Exception, U>) - Method in interface io.activej.promise.Promise
- thenCallback(CallbackFunctionEx<? super T, U>) - Method in class io.activej.promise.AbstractPromise
- thenCallback(CallbackFunctionEx<? super T, U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- thenCallback(CallbackFunctionEx<? super T, U>) - Method in class io.activej.promise.CompletePromise
- thenCallback(CallbackFunctionEx<? super T, U>) - Method in interface io.activej.promise.Promise
- thenCallback(CallbackFunctionEx<? super T, U>, CallbackFunctionEx<Exception, U>) - Method in class io.activej.promise.AbstractPromise
- thenCallback(CallbackFunctionEx<? super T, U>, CallbackFunctionEx<Exception, U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- thenCallback(CallbackFunctionEx<? super T, U>, CallbackFunctionEx<Exception, U>) - Method in class io.activej.promise.CompletePromise
- thenCallback(CallbackFunctionEx<? super T, U>, CallbackFunctionEx<Exception, U>) - Method in interface io.activej.promise.Promise
- thenCallback(CallbackSupplierEx<U>) - Method in class io.activej.promise.AbstractPromise
- thenCallback(CallbackSupplierEx<U>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- thenCallback(CallbackSupplierEx<U>) - Method in class io.activej.promise.CompletePromise
- thenCallback(CallbackSupplierEx<U>) - Method in interface io.activej.promise.Promise
- timeout(long, Promise<T>) - Static method in class io.activej.promise.Promises
-
Waits until the delay passes and if the
Promiseis still not complete, tries to complete it withTIMEOUT_EXCEPTION. - timeout(ReactorScheduler, long, Promise<T>) - Static method in class io.activej.promise.Promises
- timeout(ReactorScheduler, Duration, Promise<T>) - Static method in class io.activej.promise.Promises
- 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
typeand length 0 wrapped inPromise. - toArray(Class<T>, Promise<? extends T>) - Static method in class io.activej.promise.Promises
-
Returns an array with
promise1result. - 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
promise1andpromise2results. - 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.AbstractPromise
- 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
PromiseintoCompletableFuture. - toList() - Static method in class io.activej.promise.Promises
-
Returns a successfully completed
Promisewith an empty list as the result. - toList(Promise<? extends T>) - Static method in class io.activej.promise.Promises
-
Returns a completed
Promisewith a result wrapped inList. - 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
Promisewith a list ofpromise1andpromise2results. - 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
- toPromise() - Method in interface io.activej.promise.ToPromise
- ToPromise<T> - Interface in io.activej.promise
- toString() - Method in class io.activej.promise.AbstractPromise
- toString() - Method in class io.activej.promise.jmx.PromiseStats
- toTry() - Method in class io.activej.promise.AbstractPromise
- 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
Promisethat always completes successfully with result or exception wrapped inTry. - 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 class io.activej.promise.AbstractPromise
- 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.
- tryComplete(T) - Method in class io.activej.promise.AbstractPromise
- tryComplete(T, Exception) - Method in class io.activej.promise.AbstractPromise
- tryCompleteExceptionally(Exception) - Method in class io.activej.promise.AbstractPromise
- trySet(R) - Method in class io.activej.promise.NextPromise
- trySet(R, Exception) - Method in class io.activej.promise.NextPromise
- trySet(T) - Method in interface io.activej.promise.SettableCallback
- trySet(T) - Method in class io.activej.promise.SettablePromise
-
Tries to set provided
resultfor thisSettablePromiseif it is not completed yet. - trySet(T, Exception) - Method in interface io.activej.promise.SettableCallback
- trySet(T, Exception) - Method in class io.activej.promise.SettablePromise
-
Tries to set result or exception for this
SettablePromiseif it is not completed yet. - trySetException(Exception) - Method in class io.activej.promise.NextPromise
- trySetException(Exception) - Method in interface io.activej.promise.SettableCallback
- trySetException(Exception) - Method in class io.activej.promise.SettablePromise
-
Tries to set provided
eexception for thisSettablePromiseif it is not completed yet.
U
- until(T, FunctionEx<T, Promise<T>>, Predicate<T>) - Static method in class io.activej.promise.Promises
W
- whenComplete(BiConsumerEx<? super T, Exception>) - Method in class io.activej.promise.AbstractPromise
- whenComplete(BiConsumerEx<? super T, Exception>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- whenComplete(BiConsumerEx<? super T, Exception>) - Method in class io.activej.promise.CompletePromise
- whenComplete(BiConsumerEx<? super T, Exception>) - Method in interface io.activej.promise.Promise
-
Subscribes given consumer to be executed after this
Promisecompletes (either successfully or exceptionally). - whenComplete(ConsumerEx<? super T>, ConsumerEx<Exception>) - Method in class io.activej.promise.AbstractPromise
- whenComplete(ConsumerEx<? super T>, ConsumerEx<Exception>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- whenComplete(ConsumerEx<? super T>, ConsumerEx<Exception>) - Method in class io.activej.promise.CompletePromise
- whenComplete(ConsumerEx<? super T>, ConsumerEx<Exception>) - Method in interface io.activej.promise.Promise
-
Subscribes given consumers to be executed after
thisPromise completes (either successfully or exceptionally). - whenComplete(RunnableEx) - Method in class io.activej.promise.AbstractPromise
- whenComplete(RunnableEx) - Method in class io.activej.promise.CompleteExceptionallyPromise
- whenComplete(RunnableEx) - Method in class io.activej.promise.CompletePromise
- whenComplete(RunnableEx) - Method in interface io.activej.promise.Promise
-
Subscribes given runnable to be executed after this
Promisecompletes (either successfully or exceptionally). - whenException(ConsumerEx<Exception>) - Method in class io.activej.promise.AbstractPromise
- whenException(ConsumerEx<Exception>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- whenException(ConsumerEx<Exception>) - Method in class io.activej.promise.CompletePromise
- whenException(ConsumerEx<Exception>) - Method in interface io.activej.promise.Promise
-
Subscribes given consumer to be executed after this
Promisecompletes exceptionally. - whenException(RunnableEx) - Method in class io.activej.promise.AbstractPromise
- whenException(RunnableEx) - Method in class io.activej.promise.CompleteExceptionallyPromise
- whenException(RunnableEx) - Method in class io.activej.promise.CompletePromise
- whenException(RunnableEx) - Method in interface io.activej.promise.Promise
-
Subscribes given runnable to be executed after this
Promisecompletes exceptionally. - whenException(Class<? extends Exception>, RunnableEx) - Method in class io.activej.promise.AbstractPromise
- whenException(Class<? extends Exception>, RunnableEx) - Method in class io.activej.promise.CompleteExceptionallyPromise
- whenException(Class<? extends Exception>, RunnableEx) - Method in class io.activej.promise.CompletePromise
- whenException(Class<? extends Exception>, RunnableEx) - Method in interface io.activej.promise.Promise
-
Subscribes given runnable to be executed after this
Promisecompletes exceptionally and an exception of thisPromiseis an instance of a given exceptionClass. - whenException(Class<E>, ConsumerEx<? super E>) - Method in class io.activej.promise.AbstractPromise
- whenException(Class<E>, ConsumerEx<? super E>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- whenException(Class<E>, ConsumerEx<? super E>) - Method in class io.activej.promise.CompletePromise
- whenException(Class<E>, ConsumerEx<? super E>) - Method in interface io.activej.promise.Promise
-
Subscribes given consumer to be executed after this
Promisecompletes exceptionally and an exception of thisPromiseis an instance of a given exceptionClass. - whenResult(ConsumerEx<? super T>) - Method in class io.activej.promise.AbstractPromise
- whenResult(ConsumerEx<? super T>) - Method in class io.activej.promise.CompleteExceptionallyPromise
- whenResult(ConsumerEx<? super T>) - Method in class io.activej.promise.CompletePromise
- whenResult(ConsumerEx<? super T>) - Method in interface io.activej.promise.Promise
-
Subscribes given consumer to be executed after this
Promisecompletes successfully. - whenResult(RunnableEx) - Method in class io.activej.promise.AbstractPromise
- whenResult(RunnableEx) - Method in class io.activej.promise.CompleteExceptionallyPromise
- whenResult(RunnableEx) - Method in class io.activej.promise.CompletePromise
- whenResult(RunnableEx) - Method in interface io.activej.promise.Promise
-
Subscribes given runnable to be executed after this
Promisecompletes successfully and a result of thisPromisesatisfy a givenPredicate. - withAbortOnError(boolean) - Method in class io.activej.async.service.TaskScheduler.Builder
- withEnabled(boolean) - Method in class io.activej.async.service.TaskScheduler.Builder
- withHistogram(int[]) - Method in class io.activej.promise.jmx.PromiseStats.Builder
- withHistogram(JmxHistogram) - Method in class io.activej.promise.jmx.PromiseStats.Builder
- withInitialDelay(Duration) - Method in class io.activej.async.service.TaskScheduler.Builder
- withInterval(Duration) - Method in class io.activej.async.service.TaskScheduler.Builder
- 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.TaskScheduler.Builder
- withPromise(Promise<T>, BiConsumerEx<A, T>) - Method in class io.activej.async.AsyncAccumulator.Builder
- withRetryPolicy(RetryPolicy<?>) - Method in class io.activej.async.service.TaskScheduler.Builder
- withSchedule(TaskScheduler.Schedule) - Method in class io.activej.async.service.TaskScheduler.Builder
- withStatsHistogramLevels(int[]) - Method in class io.activej.async.service.TaskScheduler.Builder
- wrapper(AsyncRunnable) - Method in class io.activej.promise.jmx.PromiseStats
- wrapper(AsyncSupplier<T>) - Method in class io.activej.promise.jmx.PromiseStats
- write(FileChannel, long, byte[], int, int) - Method in class io.activej.async.file.ExecutorFileService
- write(FileChannel, long, byte[], int, int) - Method in interface io.activej.async.file.IFileService
All Classes and Interfaces|All Packages