Package akka.testkit

Class JavaTestKit.AwaitCond

  • Enclosing class:

    public abstract class JavaTestKit.AwaitCond
    extends java.lang.Object
    Await until the given condition evaluates to true or the timeout expires, whichever comes first.

    If no timeout is given, take it from the innermost enclosing Within block.

    Note that the timeout is scaled using Duration.dilated, which uses the configuration entry "akka.test.timefactor".

    • Constructor Summary

      Constructor Description
      AwaitCond​(scala.concurrent.duration.Duration max)  
      AwaitCond​(scala.concurrent.duration.Duration max, scala.concurrent.duration.Duration interval)  
      AwaitCond​(scala.concurrent.duration.Duration max, scala.concurrent.duration.Duration interval, java.lang.String message)  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      protected abstract boolean cond()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AwaitCond

        public AwaitCond()
      • AwaitCond

        public AwaitCond​(scala.concurrent.duration.Duration max)
      • AwaitCond

        public AwaitCond​(scala.concurrent.duration.Duration max,
                         scala.concurrent.duration.Duration interval)
      • AwaitCond

        public AwaitCond​(scala.concurrent.duration.Duration max,
                         scala.concurrent.duration.Duration interval,
                         java.lang.String message)
    • Method Detail

      • cond

        protected abstract boolean cond()