A C D E F G I J M N O P R S T U W 

A

asFastAsPossible() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder4
Repeat as fast as possible.
asyncExec() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Create and start the async execution of the CompletableFuture using ForkJoinPool.commonPool().
asyncExec() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Create and start the async execution of the CompletableFuture the executor that was defined before.
asyncExec(Executor) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Deprecated.
Replaced by using(executor).asyncExec()

C

callableWithToString(Callable<T>, Supplier<String>) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Modify a Callable to add a toString.
ch.powerunit.extensions.async.lang - package ch.powerunit.extensions.async.lang
This this the main package of the powerunit-extensions-async library that exposes easy async test operation.

D

dontIgnoreException() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder1
Explicitly indicate that no exception must be ignored.

E

eventIn(Path, WatchEvent.Kind<Path>...) - Static method in class ch.powerunit.extensions.async.lang.WaitFile
Wait for a folder to have some event.
every(int, TimeUnit) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder4
Specify the amount of time between retry.
every(Duration) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder4
Specify the amount of time between retry.
everyMinute() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder4
Specify to retry every minute.
everyMs(long) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder4
Specify the amount of time between retry.
everySecond() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder4
Specify to retry every second.
expecting(Predicate<T>) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder2
Specify the condition that accept the result.
expectingAllOf(Predicate<T>, Predicate<T>...) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder2
Specify that at all conditions must accept the result.
expectingAnyOf(Predicate<T>, Predicate<T>...) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder2
Specify that at least one condition must accept the result.
expectingEqualsTo(T) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder2
Specify that the returned result must be equals to the received object.
expectingNot(Predicate<T>) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder2
Specify the condition that doesn't accept the result.
expectingNotNull() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder2
Specify that the returned result must be not null.

F

filter(Predicate<T>) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Add a filter predicate, on the result, if applicable.
finish() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Directly wait for the result of this execution using ForkJoinPool.commonPool().
finish() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Directly wait for the result of this execution.
finish(Executor) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Deprecated.
Replaced by using(executor).finish()
finishWithAResult() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Directly wait for a positive result of this execution using ForkJoinPool.commonPool().
finishWithAResult() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Directly wait for a positive result of this execution.
finishWithAResult(Executor) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Deprecated.
Replaced by using(executor).finishWithAResult()
flatMap(Function<T, Optional<U>>) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Add a flat mapper fonction, on the result, if applicable.
forException(Callable<?>) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Start the builder to create an instance of CompletableFuture based on repeated control of a call that is assumed as OK when an exception is thrown.
forException(Callable<?>, Class<T>) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Start the builder to create an instance of CompletableFuture based on repeated control of a call that is assumed as done when a a specific exception is thrown.

G

get() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Directly wait for the result of this execution (the execution is run in this thread).
get() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Waits if necessary for the produced future to complete, and then returns its result.
getCount() - Method in interface ch.powerunit.extensions.async.lang.RetryPolicy
This is the number of retry to be done.

I

ignoreException() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder1
Ignore any error during execution of the callable.
ignoreException(boolean) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder1
Ignore any error during execution of the callable and define if there are not result and an exception at last operation if this exception must be thrown.

J

join() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Shortcut method to the join of the CompletableFuture.
joinWithAResult() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Shortcut method to the join of the CompletableFuture, that expect a positive result.

M

map(Function<T, U>) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Add a mapper fonction, on the result, if applicable.
minimalCompletionStage() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Returns a new CompletionStage that is completed normally based on this CompletableFuture.

N

newFileIn(Path) - Static method in class ch.powerunit.extensions.async.lang.WaitFile
Wait for a folder to contains new entry.
newFileNamedIn(Path, String) - Static method in class ch.powerunit.extensions.async.lang.WaitFile
Wait for a folder to contains new entry based on his name.

O

of(int, long) - Static method in class ch.powerunit.extensions.async.lang.RetryPolicies
Create a new RetryPolicy with constant wait time.
of(int, long, TimeUnit) - Static method in class ch.powerunit.extensions.async.lang.RetryPolicies
Create a new RetryPolicy with constant wait time.
of(int, Duration) - Static method in class ch.powerunit.extensions.async.lang.RetryPolicies
Create a new RetryPolicy with constant wait time.
of(int, IntToLongFunction) - Static method in class ch.powerunit.extensions.async.lang.RetryPolicies
Create a new RetryPolicy, by using a generic function to compute the retry duration.
of(Callable<T>) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Start the builder to create an instance of CompletableFuture based on the result of the received action, with repetition until some condition.
of(Callable<T>, Runnable) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Start the builder to create an instance of CompletableFuture based on the result of the received action, with repetition until some condition.
ofIncremental(int, long) - Static method in class ch.powerunit.extensions.async.lang.RetryPolicies
Create a new RetryPolicy, that wait each time more time : first time the received duration, second time twice, etc.
ofIncremental(int, Duration) - Static method in class ch.powerunit.extensions.async.lang.RetryPolicies
Create a new RetryPolicy, that wait each time more time : first time the received duration, second time twice, etc.
ofRunnable(Runnable) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Start the builder to create an instance of CompletableFuture based on execution of the received action, with repetition until some condition.
ofSupplier(Supplier<T>) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Start the builder to create an instance of CompletableFuture based on execution of the received action, with repetition until some condition.
on(T) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Start the builder to create an instance of CompletableFuture based on repeated control on the mutable object.
onCondition(Supplier<Boolean>) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Start the builder to create an instance of CompletableFuture based on repeated control on a method returning a boolean.
onFinish(Runnable) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Register an action to be done when the retrieval is finish (in success or not).
or(Supplier<? extends Optional<? extends T>>) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Add a or operation, on the result, if applicable.
orTimeout(long, TimeUnit) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Create and start the async execution of the CompletableFuture and exceptionally completes this CompletableFuture with a TimeoutException if not otherwise completed before the given timeout.

P

predicateWithToString(Predicate<T>, Supplier<String>) - Static method in class ch.powerunit.extensions.async.lang.WaitResult
Modify a Predicate to add a toString.

R

removeFileFrom(Path) - Static method in class ch.powerunit.extensions.async.lang.WaitFile
Wait for a folder to have entry removed.
repeat(int) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder3
Specify the maximal number of retry.
repeat(RetryPolicy) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder3
Specify a retry clause.
repeatOnlyOnce() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder3
Specify that only one retry will be done (so only one execution and one validation).
repeatTwice() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder3
Specify that only two retry will be done.
RETRY_ONLY_ONCE - Static variable in class ch.powerunit.extensions.async.lang.RetryPolicies
Retry Policy to just do one try.
RetryPolicies - Class in ch.powerunit.extensions.async.lang
Helpers methods to build RetryPolicy.
RetryPolicy - Interface in ch.powerunit.extensions.async.lang
This interface can be used to specify retry configuration.

S

sleepBetweenRetry(int) - Method in interface ch.powerunit.extensions.async.lang.RetryPolicy
This is the method called to wait between a retry.

T

thenAccept(Consumer<? super Optional<T>>) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Create and start the async execution of the CompletableFuture and directly register a Consumer on the result.
thenApply(Function<? super Optional<T>, ? extends U>) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder6
Create and start the async execution of the CompletableFuture and directly register a Function on the result.

U

using(Executor) - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Define the executor to be used for the async part.
usingDefaultExecutor() - Method in interface ch.powerunit.extensions.async.lang.WaitResultBuilder5
Define the executor to be used for the async part as using ForkJoinPool.commonPool().

W

WaitFile - Class in ch.powerunit.extensions.async.lang
This class provides methods to wait for fileSystem events.
WaitResult - Class in ch.powerunit.extensions.async.lang
This class is the entry point for this library to support async operation inside test.
WaitResultBuilder1<T> - Interface in ch.powerunit.extensions.async.lang
First Step of the builder of CompletableFuture to skip, if necessary, the error.
WaitResultBuilder2<T> - Interface in ch.powerunit.extensions.async.lang
Second Step of the builder of CompletableFuture to specify the condition to accept a result.
WaitResultBuilder3<T> - Interface in ch.powerunit.extensions.async.lang
Third Step of the builder of CompletableFuture to specify the maximal number of retry.
WaitResultBuilder4<T> - Interface in ch.powerunit.extensions.async.lang
Fourth Step of the builder of CompletableFuture to specify the amount of time between the retry.
WaitResultBuilder5<T> - Interface in ch.powerunit.extensions.async.lang
Almost final Step of the builder of CompletableFuture to define the executor it self.
WaitResultBuilder6<T> - Interface in ch.powerunit.extensions.async.lang
Last Step of the builder of CompletableFuture to create the completable operation it self.
A C D E F G I J M N O P R S T U W 
Skip navigation links

Copyright © 2021. All rights reserved.