Class TestKitSettings
- java.lang.Object
-
- org.apache.pekko.actor.testkit.typed.TestKitSettings
-
public final class TestKitSettings extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TestKitSettings(com.typesafe.config.Config config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestKitSettings
apply(com.typesafe.config.Config config)
Reads configuration settings from givenConfig
that must have the same layout as thepekko.actor.testkit.typed
section.static TestKitSettings
apply(ActorSystem<?> system)
Reads configuration settings frompekko.actor.testkit.typed
section.com.typesafe.config.Config
config()
static TestKitSettings
create(com.typesafe.config.Config config)
Reads configuration settings from givenConfig
that must have the same layout as thepekko.actor.testkit.typed
section.static TestKitSettings
create(ActorSystem<?> system)
Java API: Reads configuration settings frompekko.actor.testkit.typed
section.scala.concurrent.duration.FiniteDuration
DefaultActorSystemShutdownTimeout()
Dilated with `TestTimeFactor`.Timeout
DefaultTimeout()
Dilated with `TestTimeFactor`.java.time.Duration
dilated(java.time.Duration duration)
Java API: Scale theduration
with the configuredTestTimeFactor
scala.concurrent.duration.FiniteDuration
dilated(scala.concurrent.duration.FiniteDuration duration)
Scala API: Scale theduration
with the configuredTestTimeFactor
scala.concurrent.duration.FiniteDuration
ExpectNoMessageDefaultTimeout()
Dilated with `TestTimeFactor`.scala.concurrent.duration.FiniteDuration
FilterLeeway()
Dilated with `TestTimeFactor`.scala.concurrent.duration.FiniteDuration
SingleExpectDefaultTimeout()
Dilated with `TestTimeFactor`.double
TestTimeFactor()
boolean
ThrowOnShutdownTimeout()
-
-
-
Method Detail
-
apply
public static TestKitSettings apply(ActorSystem<?> system)
Reads configuration settings frompekko.actor.testkit.typed
section.
-
apply
public static TestKitSettings apply(com.typesafe.config.Config config)
Reads configuration settings from givenConfig
that must have the same layout as thepekko.actor.testkit.typed
section.
-
create
public static TestKitSettings create(ActorSystem<?> system)
Java API: Reads configuration settings frompekko.actor.testkit.typed
section.
-
create
public static TestKitSettings create(com.typesafe.config.Config config)
Reads configuration settings from givenConfig
that must have the same layout as thepekko.actor.testkit.typed
section.
-
config
public com.typesafe.config.Config config()
-
TestTimeFactor
public double TestTimeFactor()
-
SingleExpectDefaultTimeout
public scala.concurrent.duration.FiniteDuration SingleExpectDefaultTimeout()
Dilated with `TestTimeFactor`.
-
ExpectNoMessageDefaultTimeout
public scala.concurrent.duration.FiniteDuration ExpectNoMessageDefaultTimeout()
Dilated with `TestTimeFactor`.
-
DefaultTimeout
public Timeout DefaultTimeout()
Dilated with `TestTimeFactor`.
-
DefaultActorSystemShutdownTimeout
public scala.concurrent.duration.FiniteDuration DefaultActorSystemShutdownTimeout()
Dilated with `TestTimeFactor`.
-
ThrowOnShutdownTimeout
public boolean ThrowOnShutdownTimeout()
-
FilterLeeway
public scala.concurrent.duration.FiniteDuration FilterLeeway()
Dilated with `TestTimeFactor`.
-
dilated
public scala.concurrent.duration.FiniteDuration dilated(scala.concurrent.duration.FiniteDuration duration)
Scala API: Scale theduration
with the configuredTestTimeFactor
-
dilated
public java.time.Duration dilated(java.time.Duration duration)
Java API: Scale theduration
with the configuredTestTimeFactor
-
-