Package akka.cluster.typed
Class ClusterSingletonSetup
- java.lang.Object
-
- akka.actor.setup.Setup
-
- akka.actor.typed.ExtensionSetup<ClusterSingleton>
-
- akka.cluster.typed.ClusterSingletonSetup
-
public final class ClusterSingletonSetup extends ExtensionSetup<ClusterSingleton>
Can be used inActorSystemSetup
when starting theActorSystem
to replace the default implementation of theClusterSingleton
extension. Intended for tests that need to replace extension with stub/mock implementations.
-
-
Constructor Summary
Constructors Constructor Description ClusterSingletonSetup(java.util.function.Function<ActorSystem<?>,ClusterSingleton> createExtension)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Extension>
ClusterSingletonSetupapply(scala.Function1<ActorSystem<?>,ClusterSingleton> createExtension)
-
Methods inherited from class akka.actor.typed.ExtensionSetup
createExtension, extId
-
-
-
-
Constructor Detail
-
ClusterSingletonSetup
public ClusterSingletonSetup(java.util.function.Function<ActorSystem<?>,ClusterSingleton> createExtension)
-
-
Method Detail
-
apply
public static <T extends Extension> ClusterSingletonSetup apply(scala.Function1<ActorSystem<?>,ClusterSingleton> createExtension)
-
-