Poller.ConditionChecker<T>, Poller.ListenerRemover, Poller.PollingListener, Poller.TimeoutListener, Poller.UnsatisfiedConditionException
Constructor and Description |
---|
DefaultPoller() |
Modifier and Type | Method and Description |
---|---|
Poller.ListenerRemover |
addListener(Poller.PollingListener pollingListener)
Adds a
Poller.PollingListener . |
Poller.ListenerRemover |
addListener(Poller.TimeoutListener timeoutListener)
Adds a
Poller.TimeoutListener . |
long |
getIntervalMillis() |
long |
getTimeoutMillis() |
<T> T |
pollFor(DroidDriver driver,
Finder finder,
Poller.ConditionChecker<T> checker)
Polls until
checker does not throw
Poller.UnsatisfiedConditionException , up to the default timeout. |
<T> T |
pollFor(DroidDriver driver,
Finder finder,
Poller.ConditionChecker<T> checker,
long timeoutMillis)
|
void |
setIntervalMillis(long intervalMillis)
Sets intervalMillis.
|
void |
setTimeoutMillis(long timeoutMillis)
Sets default timeoutMillis.
|
public long getIntervalMillis()
getIntervalMillis
in interface Poller
public void setIntervalMillis(long intervalMillis)
Poller
setIntervalMillis
in interface Poller
public long getTimeoutMillis()
getTimeoutMillis
in interface Poller
public void setTimeoutMillis(long timeoutMillis)
Poller
setTimeoutMillis
in interface Poller
public <T> T pollFor(DroidDriver driver, Finder finder, Poller.ConditionChecker<T> checker)
Poller
checker
does not throw
Poller.UnsatisfiedConditionException
, up to the default timeout.public <T> T pollFor(DroidDriver driver, Finder finder, Poller.ConditionChecker<T> checker, long timeoutMillis)
Poller
public Poller.ListenerRemover addListener(Poller.TimeoutListener timeoutListener)
Poller
Poller.TimeoutListener
.addListener
in interface Poller
public Poller.ListenerRemover addListener(Poller.PollingListener pollingListener)
Poller
Poller.PollingListener
.addListener
in interface Poller