Waiter.LogPointDEFAULT_INTERVAL| Constructor and Description |
|---|
SimpleWaiter(BooleanSupplier successCondition) |
SimpleWaiter(BooleanSupplier successCondition,
String reason) |
SimpleWaiter(BooleanSupplier successCondition,
TimeUnit timeoutUnit,
long timeout) |
SimpleWaiter(BooleanSupplier successCondition,
TimeUnit timeoutUnit,
long timeout,
String reason) |
| Modifier and Type | Method and Description |
|---|---|
SimpleWaiter |
failFast(FailFastCheck failFast)
Sets waiters fail fast function that indicates (returns true) if there is an error state and waiting should not
proceed.
|
SimpleWaiter |
failureCondition(BooleanSupplier failureCondition) |
SimpleWaiter |
interval(long millis)
Sets waiter conditions check interval.
|
SimpleWaiter |
interval(TimeUnit timeUnit,
long t)
Sets waiter conditions check interval.
|
SimpleWaiter |
level(org.slf4j.event.Level level)
Set the level of severity for a log message.
|
SimpleWaiter |
logPoint(Waiter.LogPoint logPoint)
Sets waiters logPoints.
|
SimpleWaiter |
onFailure(Runnable runnable)
Sets waiters failed awaiting execution.
|
SimpleWaiter |
onIteration(Runnable runnable)
Sets waiters execution for each iteration.
|
SimpleWaiter |
onSuccess(Runnable runnable)
Sets waiters successful awaiting execution.
|
SimpleWaiter |
onTimeout(Runnable runnable)
Sets waiters timed out awaiting execution.
|
SimpleWaiter |
reason(String reason)
Sets waiting reason.
|
SimpleWaiter |
timeout(long millis)
Sets waiter timeout after which waiters stops waiting.
|
SimpleWaiter |
timeout(TimeUnit timeUnit,
long t)
Sets waiter timeout after which waiters stops waiting.
|
boolean |
waitFor()
Waits till condition is met.
|
public SimpleWaiter(BooleanSupplier successCondition)
public SimpleWaiter(BooleanSupplier successCondition, String reason)
public SimpleWaiter(BooleanSupplier successCondition, TimeUnit timeoutUnit, long timeout)
public SimpleWaiter(BooleanSupplier successCondition, TimeUnit timeoutUnit, long timeout, String reason)
public SimpleWaiter failureCondition(BooleanSupplier failureCondition)
public SimpleWaiter timeout(long millis)
WaiterWaiter.logPoint(LogPoint) to anything else then
Waiter.LogPoint.NONEpublic SimpleWaiter timeout(TimeUnit timeUnit, long t)
WaiterWaiter.logPoint(LogPoint) to anything else then
Waiter.LogPoint.NONEpublic SimpleWaiter interval(long millis)
Waiterpublic SimpleWaiter interval(TimeUnit timeUnit, long t)
Waiterpublic SimpleWaiter reason(String reason)
Waiterpublic SimpleWaiter logPoint(Waiter.LogPoint logPoint)
WaiterlogPoint in interface WaiterlogPoint - what points of waiting should be logged.Waiter.LogPointpublic SimpleWaiter level(org.slf4j.event.Level level)
Waiterpublic SimpleWaiter onIteration(Runnable runnable)
WaiteronIteration in interface Waiterrunnable - code to be executed upon successful waiting.public SimpleWaiter onSuccess(Runnable runnable)
Waiterpublic SimpleWaiter onFailure(Runnable runnable)
Waiterpublic SimpleWaiter failFast(FailFastCheck failFast)
Waiterpublic SimpleWaiter onTimeout(Runnable runnable)
WaiterCopyright © 2021. All rights reserved.