com.atlassian.pageobjects.elements.query
Class AbstractPollingQuery

java.lang.Object
  extended by com.atlassian.pageobjects.elements.query.AbstractPollingQuery
All Implemented Interfaces:
PollingQuery
Direct Known Subclasses:
AbstractTimedQuery

public class AbstractPollingQuery
extends Object
implements PollingQuery

Abstract implementation of the PollingQuery interface.


Field Summary
protected  long defaultTimeout
           
protected  long interval
           
 
Fields inherited from interface com.atlassian.pageobjects.elements.query.PollingQuery
DEFAULT_INTERVAL
 
Constructor Summary
protected AbstractPollingQuery(long interval, long defaultTimeout)
           
protected AbstractPollingQuery(PollingQuery other)
           
 
Method Summary
 long defaultTimeout()
          Default timeout (in milliseconds) of this query in the current test context.
 long interval()
          An interval (in milliseconds) that will be used to periodically evaluate the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interval

protected final long interval

defaultTimeout

protected final long defaultTimeout
Constructor Detail

AbstractPollingQuery

protected AbstractPollingQuery(long interval,
                               long defaultTimeout)

AbstractPollingQuery

protected AbstractPollingQuery(PollingQuery other)
Method Detail

interval

public long interval()
Description copied from interface: PollingQuery
An interval (in milliseconds) that will be used to periodically evaluate the query.

Specified by:
interval in interface PollingQuery
Returns:
evaluation interval of this query.

defaultTimeout

public long defaultTimeout()
Description copied from interface: PollingQuery
Default timeout (in milliseconds) of this query in the current test context.

Specified by:
defaultTimeout in interface PollingQuery
Returns:
default timeout of this query


Copyright © 2014 Atlassian. All rights reserved.