Package akka.cluster.typed.internal
Class AdaptedClusterSingletonImpl
- java.lang.Object
-
- akka.cluster.typed.ClusterSingleton
-
- akka.cluster.typed.internal.AdaptedClusterSingletonImpl
-
- All Implemented Interfaces:
Extension
public final class AdaptedClusterSingletonImpl extends ClusterSingleton
INTERNAL API:
-
-
Constructor Summary
Constructors Constructor Description AdaptedClusterSingletonImpl(ActorSystem<?> system)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <M> ActorRef<M>
init(SingletonActor<M> singleton)
Start if needed and provide a proxy to a named singleton-
Methods inherited from class akka.cluster.typed.ClusterSingleton
apply, createExtension, equals, get, hashCode, id
-
-
-
-
Constructor Detail
-
AdaptedClusterSingletonImpl
public AdaptedClusterSingletonImpl(ActorSystem<?> system)
-
-
Method Detail
-
init
public <M> ActorRef<M> init(SingletonActor<M> singleton)
Description copied from class:ClusterSingleton
Start if needed and provide a proxy to a named singletonIf there already is a manager running for the given
singletonName
on this node, no additional manager is started. If there already is a proxy running for the givensingletonName
on this node, anActorRef
to that is returned.- Specified by:
init
in classClusterSingleton
- Returns:
- A proxy actor that can be used to communicate with the singleton in the cluster
-
-