1 package com.atlassian.pageobjects.elements.query;
2
3 /**
4 * A query over the state of the current test that is capable of being repeated at given intervals in an attempt to
5 * wait for a desired result.
6 *
7 */
8 public interface PollingQuery
9 {
10 public static final long DEFAULT_INTERVAL = 100L;
11
12 /**
13 * An interval (in milliseconds) that will be used to periodically evaluate the query.
14 *
15 * @return evaluation interval of this query.
16 */
17 long interval();
18
19 /**
20 * Default timeout (in milliseconds) of this query in the current test context.
21 *
22 * @return default timeout of this query
23 */
24 long defaultTimeout();
25 }