Package org.apache.pekko.cluster.typed
Class Cluster
java.lang.Object
org.apache.pekko.cluster.typed.Cluster
- All Implemented Interfaces:
Extension
This class is not intended for user extension other than for test purposes (e.g.
stub implementation). More methods may be added in the future and that may break
such implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Tapply(ActorSystem<?> system) static ClustercreateExtension(ActorSystem<?> system) static final booleanstatic Clusterget(ActorSystem<?> system) Java APIstatic final inthashCode()static ExtensionId<T>id()abstract booleanReturns true if this cluster instance has be shutdown.abstract ActorRef<ClusterCommand>manager()abstract MemberDetails about this cluster node itselfabstract ClusterEvent.CurrentClusterStatestate()Current snapshot state of the cluster.abstract ActorRef<ClusterStateSubscription>
-
Constructor Details
-
Cluster
public Cluster()
-
-
Method Details
-
createExtension
-
get
Java API -
apply
-
hashCode
public static final int hashCode() -
equals
-
id
-
selfMember
Details about this cluster node itself -
isTerminated
public abstract boolean isTerminated()Returns true if this cluster instance has be shutdown. -
state
Current snapshot state of the cluster. -
subscriptions
- Returns:
- an actor that allows for subscribing to messages when the cluster state changes
-
manager
- Returns:
- an actor that accepts commands to join, leave and down nodes in a cluster
-