Package | Description |
---|---|
com.jayway.awaitility | |
com.jayway.awaitility.core | |
com.jayway.awaitility.pollinterval |
Modifier and Type | Field and Description |
---|---|
static Duration |
Duration.FIVE_HUNDRED_MILLISECONDS
Constant
FIVE_HUNDRED_MILLISECONDS |
static Duration |
Duration.FIVE_MINUTES
Constant
FIVE_MINUTES |
static Duration |
Duration.FIVE_SECONDS
Constant
FIVE_SECONDS |
static Duration |
Duration.FOREVER
Constant
FOREVER |
static Duration |
Duration.ONE_HUNDRED_MILLISECONDS
Constant
ONE_HUNDRED_MILLISECONDS |
static Duration |
Duration.ONE_MILLISECOND
Constant
ONE_MILLISECOND |
static Duration |
Duration.ONE_MINUTE
Constant
ONE_MINUTE |
static Duration |
Duration.ONE_SECOND
Constant
ONE_SECOND |
static Duration |
Duration.SAME_AS_POLL_INTERVAL
Deprecated.
This doesn't do anything. The initial delay is now always the same as poll interval if nothing else is specified.
|
static Duration |
Duration.TEN_MINUTES
Constant
TEN_MINUTES |
static Duration |
Duration.TEN_SECONDS
Constant
TEN_SECONDS |
static Duration |
Duration.TWO_HUNDRED_MILLISECONDS
Constant
TWO_HUNDRED_MILLISECONDS |
static Duration |
Duration.TWO_MINUTES
Constant
TWO_MINUTES |
static Duration |
Duration.TWO_SECONDS
Constant
TWO_SECONDS |
static Duration |
Duration.ZERO
Constant
ZERO |
Modifier and Type | Method and Description |
---|---|
Duration |
Duration.divide(long amount)
Divide this duration amount with the given amount
|
Duration |
Duration.minus(Duration duration)
Add a duration with the given time unit.
|
Duration |
Duration.minus(long amount)
Subtract an amount (with the same time unit as the current amount)
|
Duration |
Duration.minus(long amount,
TimeUnit timeUnit)
Subtract an amount with the given time unit.
|
Duration |
Duration.multiply(long amount)
Multiply this amount with the given amount
|
Duration |
Duration.plus(Duration duration)
Add a duration with the given time unit.
|
Duration |
Duration.plus(long amount)
Add a amount (with the same time unit as the current duration)
|
Duration |
Duration.plus(long amount,
TimeUnit timeUnit)
Add a amount with the given time unit.
|
Modifier and Type | Method and Description |
---|---|
Duration |
Duration.minus(Duration duration)
Add a duration with the given time unit.
|
Duration |
Duration.plus(Duration duration)
Add a duration with the given time unit.
|
static void |
Awaitility.setDefaultPollDelay(Duration pollDelay)
Sets the default poll delay that all await statements will use.
|
static void |
Awaitility.setDefaultPollInterval(Duration pollInterval)
Sets the default poll interval that all await statements will use.
|
static void |
Awaitility.setDefaultTimeout(Duration defaultTimeout)
Sets the default timeout that all await statements will use.
|
static ConditionFactory |
Awaitility.waitAtMost(Duration timeout)
An alternative to using
Awaitility.await() if you want to specify a timeout
directly. |
Modifier and Type | Method and Description |
---|---|
Duration |
EvaluatedCondition.getPollInterval() |
Modifier and Type | Method and Description |
---|---|
ConditionFactory |
ConditionFactory.atMost(Duration timeout)
Await at most
timeout before throwing a timeout exception. |
ConditionFactory |
ConditionFactory.pollDelay(Duration pollDelay)
Specify the delay that will be used before Awaitility starts polling for
the result the first time.
|
ConditionFactory |
ConditionFactory.pollInterval(Duration pollInterval)
Specify the polling interval Awaitility will use for this await
statement.
|
ConditionFactory |
ConditionFactory.timeout(Duration timeout)
Await at most
timeout before throwing a timeout exception. |
Constructor and Description |
---|
ConditionFactory(Duration timeout,
Duration pollInterval,
Duration pollDelay,
boolean catchUncaughtExceptions,
ExceptionIgnorer exceptionsIgnorer)
Instantiates a new condition factory.
|
ConditionFactory(Duration timeout,
Duration pollInterval,
Duration pollDelay,
boolean catchUncaughtExceptions,
ExceptionIgnorer exceptionsIgnorer,
ConditionEvaluationListener conditionEvaluationListener)
Instantiates a new condition factory.
|
ConditionFactory(Duration timeout,
PollInterval pollInterval,
Duration pollDelay,
boolean catchUncaughtExceptions,
ExceptionIgnorer exceptionsIgnorer)
Instantiates a new condition factory.
|
ConditionFactory(Duration timeout,
PollInterval pollInterval,
Duration pollDelay,
boolean catchUncaughtExceptions,
ExceptionIgnorer exceptionsIgnorer,
ConditionEvaluationListener conditionEvaluationListener)
Instantiates a new condition factory.
|
ConditionFactory(String alias,
Duration timeout,
Duration pollInterval,
Duration pollDelay,
boolean catchUncaughtExceptions,
ExceptionIgnorer exceptionsIgnorer,
ConditionEvaluationListener conditionEvaluationListener)
Instantiates a new condition factory.
|
ConditionFactory(String alias,
Duration timeout,
PollInterval pollInterval,
Duration pollDelay,
boolean catchUncaughtExceptions,
ExceptionIgnorer exceptionsIgnorer,
ConditionEvaluationListener conditionEvaluationListener) |
Modifier and Type | Method and Description |
---|---|
Duration |
IterativePollInterval.Function.apply(Duration previousDuration)
Applies this function to the given argument.
|
Duration |
PollInterval.next(int pollCount,
Duration previousDuration)
|
Duration |
IterativePollInterval.next(int pollCount,
Duration previousDuration)
Generate the next Duration based on the supplied function.
|
Duration |
FixedPollInterval.next(int pollCount,
Duration previousDuration)
Generate the next duration
|
Duration |
FibonacciPollInterval.next(int pollCount,
Duration previousDuration)
Generate the next duration
|
Modifier and Type | Method and Description |
---|---|
Duration |
IterativePollInterval.Function.apply(Duration previousDuration)
Applies this function to the given argument.
|
static FixedPollInterval |
FixedPollInterval.fixed(Duration duration)
Syntactic sugar for create a new instance of
FixedPollInterval . |
static IterativePollInterval |
IterativePollInterval.iterative(IterativePollInterval.Function function,
Duration startDuration)
Syntactic sugar for creating a
IterativePollInterval . |
Duration |
PollInterval.next(int pollCount,
Duration previousDuration)
|
Duration |
IterativePollInterval.next(int pollCount,
Duration previousDuration)
Generate the next Duration based on the supplied function.
|
Duration |
FixedPollInterval.next(int pollCount,
Duration previousDuration)
Generate the next duration
|
Duration |
FibonacciPollInterval.next(int pollCount,
Duration previousDuration)
Generate the next duration
|
IterativePollInterval |
IterativePollInterval.startDuration(Duration duration)
Set the start duration of this poll interval
|
Constructor and Description |
---|
FixedPollInterval(Duration duration)
Create a new instance of the
FixedPollInterval . |
IterativePollInterval(IterativePollInterval.Function function,
Duration startDuration)
Generate a iterative poll interval based on the supplied function and start duration.
|
Copyright © 2010–2015. All rights reserved.