T
- The type of result of the CompletableFuture
public interface WaitResultBuilder3<T>
CompletableFuture
to specify the maximal
number of retry.Modifier and Type | Method | Description |
---|---|---|
default WaitResultBuilder4<T> |
repeat(int count) |
Specify the maximal number of retry.
|
WaitResultBuilder5<T> |
repeat(RetryPolicy retry) |
Specify a retry clause.
|
default WaitResultBuilder5<T> |
repeatOnlyOnce() |
Specify that only one retry will be done (so only one execution and one
validation).
|
default WaitResultBuilder4<T> |
repeatTwice() |
Specify that only two retry will be done.
|
WaitResultBuilder5<T> repeat(RetryPolicy retry)
The goal is here to define somewhere in the test a constant with this clause and reuse it in the test.
retry
- the retry clause.the final step of the builder
RetryPolicies
default WaitResultBuilder4<T> repeat(int count)
count
- the number of retrythe next step of the builder
default WaitResultBuilder5<T> repeatOnlyOnce()
the final step of the builder
default WaitResultBuilder4<T> repeatTwice()
the next step of the builder
Copyright © 2021. All rights reserved.