Class TestKit$

java.lang.Object
org.apache.pekko.testkit.TestKit$

public class TestKit$ extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TestKit$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    awaitCond(scala.Function0<Object> p, scala.concurrent.duration.Duration max, scala.concurrent.duration.Duration interval, boolean noThrow)
    Await until the given condition evaluates to true or the timeout expires, whichever comes first.
    scala.concurrent.duration.Duration
     
    boolean
     
    scala.concurrent.duration.Duration
    now()
    Obtain current timestamp as Duration for relative measurements (using System.nanoTime).
    void
    shutdownActorSystem(ActorSystem actorSystem, scala.concurrent.duration.Duration duration, boolean verifySystemShutdown)
    Shut down an actor system and wait for termination.
    scala.concurrent.duration.Duration
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODULE$

      public static final TestKit$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • TestKit$

      public TestKit$()
  • Method Details

    • awaitCond

      public boolean awaitCond(scala.Function0<Object> p, scala.concurrent.duration.Duration max, scala.concurrent.duration.Duration interval, boolean noThrow)
      Await until the given condition evaluates to true or the timeout expires, whichever comes first.
    • awaitCond$default$3

      public scala.concurrent.duration.Duration awaitCond$default$3()
    • awaitCond$default$4

      public boolean awaitCond$default$4()
    • now

      public scala.concurrent.duration.Duration now()
      Obtain current timestamp as Duration for relative measurements (using System.nanoTime).
    • shutdownActorSystem

      public void shutdownActorSystem(ActorSystem actorSystem, scala.concurrent.duration.Duration duration, boolean verifySystemShutdown)
      Shut down an actor system and wait for termination. On failure debug output will be logged about the remaining actors in the system.

      The duration is dilated by the timefactor.

      If verifySystemShutdown is true, then an exception will be thrown on failure.

    • shutdownActorSystem$default$2

      public scala.concurrent.duration.Duration shutdownActorSystem$default$2()
    • shutdownActorSystem$default$3

      public boolean shutdownActorSystem$default$3()