Package akka.actor.typed
Class ExtensionSetup<T extends Extension>
- java.lang.Object
-
- akka.actor.setup.Setup
-
- akka.actor.typed.ExtensionSetup<T>
-
- Direct Known Subclasses:
AbstractExtensionSetup
,ActorRefResolverSetup
,ClusterSetup
,ClusterShardingSetup
,ClusterSingletonSetup
,DistributedDataSetup
,ReceptionistSetup
public abstract class ExtensionSetup<T extends Extension> extends Setup
Each extension typically provide a concreteExtensionSetup
that can be used inActorSystemSetup
when starting theActorSystem
to replace the default implementation of the extension. Intended for tests that need to replace extension with stub/mock implementations.
-
-
Constructor Summary
Constructors Constructor Description ExtensionSetup(ExtensionId<T> extId, java.util.function.Function<ActorSystem<?>,T> createExtension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Function<ActorSystem<?>,T>
createExtension()
ExtensionId<T>
extId()
-
-
-
Constructor Detail
-
ExtensionSetup
public ExtensionSetup(ExtensionId<T> extId, java.util.function.Function<ActorSystem<?>,T> createExtension)
-
-
Method Detail
-
createExtension
public java.util.function.Function<ActorSystem<?>,T> createExtension()
-
extId
public ExtensionId<T> extId()
-
-