Package akka.cluster.typed
Class Cluster
- java.lang.Object
-
- akka.cluster.typed.Cluster
-
- All Implemented Interfaces:
Extension
- Direct Known Subclasses:
AdapterClusterImpl
public abstract class Cluster extends java.lang.Object implements Extension
Details about this cluster node itself
-
-
Constructor Summary
Constructors Constructor Description Cluster()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Tapply(ActorSystem<?> system)static ClustercreateExtension(ActorSystem<?> system)static booleanequals(java.lang.Object other)static Clusterget(ActorSystem<?> system)Java APIstatic inthashCode()static ExtensionId<T>id()abstract booleanisTerminated()Returns true if this cluster instance has be shutdown.abstract ActorRef<ClusterCommand>manager()abstract MemberselfMember()abstract ClusterEvent.CurrentClusterStatestate()Current snapshot state of the cluster.abstract ActorRef<ClusterStateSubscription>subscriptions()
-
-
-
Method Detail
-
createExtension
public static Cluster createExtension(ActorSystem<?> system)
-
get
public static Cluster 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()
-
selfMember
public abstract Member selfMember()
-
isTerminated
public abstract boolean isTerminated()
Returns true if this cluster instance has be shutdown.
-
state
public abstract ClusterEvent.CurrentClusterState state()
Current snapshot state of the cluster.
-
subscriptions
public abstract ActorRef<ClusterStateSubscription> subscriptions()
- Returns:
- an actor that allows for subscribing to messages when the cluster state changes
-
manager
public abstract ActorRef<ClusterCommand> manager()
- Returns:
- an actor that accepts commands to join, leave and down nodes in a cluster
-
-