Class WaitHookOptions


  • public class WaitHookOptions
    extends java.lang.Object
    Options for WaitHook.
    • 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

      • 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)