Package org.fluentlenium.core.hook.wait
Class WaitHookOptions
- java.lang.Object
-
- org.fluentlenium.core.hook.wait.WaitHookOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WaitHookOptions.WaitHookOptionsBuilder
-
Constructor Summary
Constructors Constructor Description WaitHookOptions()
Creates a new wait hook options, with default annotation options.WaitHookOptions(TimeUnit timeUnit, Long atMost, TimeUnit pollingTimeUnit, Long pollingEvery, Collection<Class<? extends Throwable>> ignoreAll, boolean withNoDefaultsException)
WaitHookOptions(Wait annotation)
Creates a new wait hook options, with given annotation options.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WaitHookOptions.WaitHookOptionsBuilder
builder()
protected FluentWait
configureAwait(FluentWait await)
Configure fluent wait with this options.Long
getAtMost()
Collection<Class<? extends Throwable>>
getIgnoreAll()
Long
getPollingEvery()
TimeUnit
getPollingTimeUnit()
TimeUnit
getTimeUnit()
boolean
isWithNoDefaultsException()
void
setAtMost(Long atMost)
void
setIgnoreAll(Collection<Class<? extends Throwable>> ignoreAll)
void
setPollingEvery(Long pollingEvery)
void
setPollingTimeUnit(TimeUnit pollingTimeUnit)
void
setTimeUnit(TimeUnit timeUnit)
void
setWithNoDefaultsException(boolean withNoDefaultsException)
-
-
-
Constructor Detail
-
WaitHookOptions
public WaitHookOptions()
Creates a new wait hook options, with default annotation options.
-
WaitHookOptions
public WaitHookOptions(Wait annotation)
Creates a new wait hook options, with given annotation options.- Parameters:
annotation
- wait annotation
-
-
Method Detail
-
builder
public static WaitHookOptions.WaitHookOptionsBuilder builder()
-
configureAwait
protected FluentWait configureAwait(FluentWait await)
Configure fluent wait with this options.- Parameters:
await
- fluent wait object to configure- Returns:
- configured fluent wait object
-
getTimeUnit
public TimeUnit getTimeUnit()
-
getAtMost
public Long getAtMost()
-
getPollingTimeUnit
public TimeUnit getPollingTimeUnit()
-
getPollingEvery
public Long getPollingEvery()
-
getIgnoreAll
public Collection<Class<? extends Throwable>> getIgnoreAll()
-
isWithNoDefaultsException
public boolean isWithNoDefaultsException()
-
setTimeUnit
public void setTimeUnit(TimeUnit timeUnit)
-
setAtMost
public void setAtMost(Long atMost)
-
setPollingTimeUnit
public void setPollingTimeUnit(TimeUnit pollingTimeUnit)
-
setPollingEvery
public void setPollingEvery(Long pollingEvery)
-
setIgnoreAll
public void setIgnoreAll(Collection<Class<? extends Throwable>> ignoreAll)
-
setWithNoDefaultsException
public void setWithNoDefaultsException(boolean withNoDefaultsException)
-
-