Class ManualTime
java.lang.Object
org.apache.pekko.actor.testkit.typed.javadsl.ManualTime
Not for user instantiation, see
get(org.apache.pekko.actor.typed.ActorSystem<A>)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.typesafe.config.Configconfig()Config that needs to be in place for the actor system to use the manualvoidexpectNoMessageFor(Duration duration, TestProbe<?>... on) Advance the clock by the specified duration, executing all outstanding jobs on the calling thread before returning.voidexpectNoMessageFor(Duration duration, scala.collection.immutable.Seq<TestProbe<?>> on) static <A> ManualTimeget(ActorSystem<A> system) Access the manual scheduler, note that you need to setup the actor system/testkit withManualTime.configfor this to work.voidtimePasses(Duration amount) Advance the clock by the specified duration, executing all outstanding jobs on the calling thread before returning.
-
Constructor Details
-
ManualTime
-
-
Method Details
-
config
public static com.typesafe.config.Config config()Config that needs to be in place for the actor system to use the manual -
get
Access the manual scheduler, note that you need to setup the actor system/testkit withManualTime.configfor this to work. -
expectNoMessageFor
Advance the clock by the specified duration, executing all outstanding jobs on the calling thread before returning.We will not add a dilation factor to this amount, since the scheduler API also does not apply dilation. If you want the amount of time passed to be dilated, apply the dilation before passing the delay to this method.
-
timePasses
Advance the clock by the specified duration, executing all outstanding jobs on the calling thread before returning.We will not add a dilation factor to this amount, since the scheduler API also does not apply dilation. If you want the amount of time passed to be dilated, apply the dilation before passing the delay to this method.
-
expectNoMessageFor
-