public static final class DefaultWaiterResponse.Builder<T> extends Object
Modifier and Type | Method and Description |
---|---|
DefaultWaiterResponse.Builder<T> |
attemptsExecuted(Integer attemptsExecuted)
Defines the number of attempts executed in the waiter operation
|
WaiterResponse<T> |
build() |
DefaultWaiterResponse.Builder<T> |
exception(Throwable exception)
Defines the exception thrown from the waiter operation that has matched with the waiter success condition
|
DefaultWaiterResponse.Builder<T> |
response(T response)
Defines the response received that has matched with the waiter success condition.
|
public DefaultWaiterResponse.Builder<T> response(T response)
response
- the responsepublic DefaultWaiterResponse.Builder<T> exception(Throwable exception)
exception
- the exceptionpublic DefaultWaiterResponse.Builder<T> attemptsExecuted(Integer attemptsExecuted)
attemptsExecuted
- the number of attemptspublic WaiterResponse<T> build()
Copyright © 2023. All rights reserved.