public interface ExpirationHandler
TimedQuery.| Modifier and Type | Field and Description |
|---|---|
static ExpirationHandler |
RETURN_CURRENT |
static ExpirationHandler |
RETURN_NULL |
static ExpirationHandler |
THROW_ASSERTION_ERROR |
static ExpirationHandler |
THROW_ILLEGAL_STATE |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
expired(TimedQuery<T> query,
T currentValue,
long timeout)
Handle timeout expiration for given query.
|
static final ExpirationHandler RETURN_CURRENT
static final ExpirationHandler RETURN_NULL
static final ExpirationHandler THROW_ASSERTION_ERROR
static final ExpirationHandler THROW_ILLEGAL_STATE
<T> T expired(TimedQuery<T> query, T currentValue, long timeout)
T - type of the query resultquery - timed query, whose timeout has expiredcurrentValue - current evaluation of the querytimeout - timeout of the queryCopyright © 2015 Atlassian. All rights reserved.