Package org.apache.pekko.cluster.typed
Class ClusterSingletonSetup
java.lang.Object
org.apache.pekko.actor.setup.Setup
org.apache.pekko.actor.typed.ExtensionSetup<ClusterSingleton>
org.apache.pekko.cluster.typed.ClusterSingletonSetup
Can be used in
pekko.actor.setup.ActorSystemSetup when starting the pekko.actor.typed.ActorSystem
to replace the default implementation of the ClusterSingleton extension. Intended
for tests that need to replace extension with stub/mock implementations.-
Constructor Summary
ConstructorsConstructorDescriptionClusterSingletonSetup(Function<ActorSystem<?>, ClusterSingleton> createExtension) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Extension>
ClusterSingletonSetupapply(scala.Function1<ActorSystem<?>, ClusterSingleton> createExtension) Methods inherited from class org.apache.pekko.actor.typed.ExtensionSetup
createExtension, extId
-
Constructor Details
-
ClusterSingletonSetup
-
-
Method Details
-
apply
public static <T extends Extension> ClusterSingletonSetup apply(scala.Function1<ActorSystem<?>, ClusterSingleton> createExtension)
-