com.atlassian.pageobjects.elements.query
Interface ExpirationHandler


public interface ExpirationHandler

Strategies for handling expired timeouts of the TimedQuery.


Field Summary
static ExpirationHandler RETURN_CURRENT
           
static ExpirationHandler RETURN_NULL
           
static ExpirationHandler THROW_ASSERTION_ERROR
           
static ExpirationHandler THROW_ILLEGAL_STATE
           
 
Method Summary
<T> T
expired(TimedQuery<T> query, T currentValue, long timeout)
          Handle timeout expiration for given query.
 

Field Detail

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
Method Detail

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 expired
currentValue - current evaluation of the query
timeout - timeout of the query
Returns:
result value to be returned by the query ater the timeout expiration


Copyright © 2014 Atlassian. All rights reserved.