com.atlassian.pageobjects.elements.query
Interface ExpirationHandler
public interface ExpirationHandler
Strategies for handling expired timeouts of the TimedQuery.
|
Method Summary |
|
expired(TimedQuery<T> query,
T currentValue,
long timeout)
Handle timeout expiration for given query. |
RETURN_CURRENT
static final ExpirationHandler RETURN_CURRENT
RETURN_NULL
static final ExpirationHandler RETURN_NULL
THROW_ASSERTION_ERROR
static final ExpirationHandler THROW_ASSERTION_ERROR
THROW_ILLEGAL_STATE
static final ExpirationHandler THROW_ILLEGAL_STATE
expired
<T> T expired(TimedQuery<T> query,
T currentValue,
long timeout)
- Handle timeout expiration for given query.
- Type Parameters:
T - type of the query result- Parameters:
query - timed query, whose timeout has expiredcurrentValue - current evaluation of the querytimeout - timeout of the query
- Returns:
- result value to be returned by the query ater the timeout expiration
Copyright © 2014 Atlassian. All rights reserved.