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