Package org.fluentlenium.core.hook.wait
Class WaitHookOptions
- java.lang.Object
-
- org.fluentlenium.core.hook.wait.WaitHookOptions
-
public class WaitHookOptions extends java.lang.Object
Options forWaitHook
.
-
-
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(java.util.concurrent.TimeUnit timeUnit, java.lang.Long atMost, java.util.concurrent.TimeUnit pollingTimeUnit, java.lang.Long pollingEvery, java.util.Collection<java.lang.Class<? extends java.lang.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.java.lang.Long
getAtMost()
java.util.Collection<java.lang.Class<? extends java.lang.Throwable>>
getIgnoreAll()
java.lang.Long
getPollingEvery()
java.util.concurrent.TimeUnit
getPollingTimeUnit()
java.util.concurrent.TimeUnit
getTimeUnit()
boolean
isWithNoDefaultsException()
void
setAtMost(java.lang.Long atMost)
void
setIgnoreAll(java.util.Collection<java.lang.Class<? extends java.lang.Throwable>> ignoreAll)
void
setPollingEvery(java.lang.Long pollingEvery)
void
setPollingTimeUnit(java.util.concurrent.TimeUnit pollingTimeUnit)
void
setTimeUnit(java.util.concurrent.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
-
WaitHookOptions
public WaitHookOptions(java.util.concurrent.TimeUnit timeUnit, java.lang.Long atMost, java.util.concurrent.TimeUnit pollingTimeUnit, java.lang.Long pollingEvery, java.util.Collection<java.lang.Class<? extends java.lang.Throwable>> ignoreAll, boolean withNoDefaultsException)
-
-
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 java.util.concurrent.TimeUnit getTimeUnit()
-
getAtMost
public java.lang.Long getAtMost()
-
getPollingTimeUnit
public java.util.concurrent.TimeUnit getPollingTimeUnit()
-
getPollingEvery
public java.lang.Long getPollingEvery()
-
getIgnoreAll
public java.util.Collection<java.lang.Class<? extends java.lang.Throwable>> getIgnoreAll()
-
isWithNoDefaultsException
public boolean isWithNoDefaultsException()
-
setTimeUnit
public void setTimeUnit(java.util.concurrent.TimeUnit timeUnit)
-
setAtMost
public void setAtMost(java.lang.Long atMost)
-
setPollingTimeUnit
public void setPollingTimeUnit(java.util.concurrent.TimeUnit pollingTimeUnit)
-
setPollingEvery
public void setPollingEvery(java.lang.Long pollingEvery)
-
setIgnoreAll
public void setIgnoreAll(java.util.Collection<java.lang.Class<? extends java.lang.Throwable>> ignoreAll)
-
setWithNoDefaultsException
public void setWithNoDefaultsException(boolean withNoDefaultsException)
-
-