Package akka.testkit
Class TestLatch$
- java.lang.Object
-
- akka.testkit.TestLatch$
-
public class TestLatch$ extends java.lang.Object
A count down latch wrapper for use in testing. It always uses a timeout when waiting and timeouts are specified as durations. There's a default timeout of 5 seconds and the default count is 1. Timeouts will always throw an exception (no need to wrap in assert in tests). Timeouts are multiplied by the testing time factor for Jenkins builds.
-
-
Field Summary
Fields Modifier and Type Field Description static TestLatch$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description TestLatch$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
$lessinit$greater$default$1()
TestLatch
apply(int count, ActorSystem system)
int
apply$default$1()
scala.concurrent.duration.FiniteDuration
DefaultTimeout()
-
-
-
Field Detail
-
MODULE$
public static final TestLatch$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
$lessinit$greater$default$1
public int $lessinit$greater$default$1()
-
DefaultTimeout
public scala.concurrent.duration.FiniteDuration DefaultTimeout()
-
apply
public TestLatch apply(int count, ActorSystem system)
-
apply$default$1
public int apply$default$1()
-
-