Package akka.cluster.typed
Class ClusterSingleton
- java.lang.Object
-
- akka.cluster.typed.ClusterSingleton
-
- All Implemented Interfaces:
Extension
- Direct Known Subclasses:
AdaptedClusterSingletonImpl
public abstract class ClusterSingleton extends java.lang.Object implements Extension
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.
-
-
Constructor Summary
Constructors Constructor Description ClusterSingleton()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static T
apply(ActorSystem<?> system)
static ClusterSingleton
createExtension(ActorSystem<?> system)
static boolean
equals(java.lang.Object other)
static ClusterSingleton
get(ActorSystem<?> system)
Java API:static int
hashCode()
static ExtensionId<T>
id()
abstract <M> ActorRef<M>
init(SingletonActor<M> singleton)
-
-
-
Method Detail
-
createExtension
public static ClusterSingleton createExtension(ActorSystem<?> system)
-
get
public static ClusterSingleton get(ActorSystem<?> system)
Java API:- Parameters:
system
- (undocumented)- Returns:
- (undocumented)
-
apply
public static final T apply(ActorSystem<?> system)
-
hashCode
public static final int hashCode()
-
equals
public static final boolean equals(java.lang.Object other)
-
id
public static ExtensionId<T> id()
-
init
public abstract <M> ActorRef<M> init(SingletonActor<M> singleton)
-
-