Package org.apache.pekko.testkit
Class TestKit$
java.lang.Object
org.apache.pekko.testkit.TestKit$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitCond(scala.Function0<Object> p, scala.concurrent.duration.Duration max, scala.concurrent.duration.Duration interval, boolean noThrow) Await until the given condition evaluates totrueor the timeout expires, whichever comes first.scala.concurrent.duration.Durationbooleanscala.concurrent.duration.Durationnow()Obtain current timestamp as Duration for relative measurements (using System.nanoTime).voidshutdownActorSystem(ActorSystem actorSystem, scala.concurrent.duration.Duration duration, boolean verifySystemShutdown) Shut down an actor system and wait for termination.scala.concurrent.duration.Durationboolean
-
Field Details
-
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 totrueor 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
durationis 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()
-