Class Cluster

  • All Implemented Interfaces:
    Extension
    Direct Known Subclasses:
    AdapterClusterImpl

    public abstract class Cluster
    extends java.lang.Object
    implements 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 Detail

      • Cluster

        public Cluster()
    • Method Detail

      • get

        public static Cluster get​(ActorSystem<?> system)
        Java API
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)
      • selfMember

        public abstract Member selfMember()
        Details about this cluster node itself
      • isTerminated

        public abstract boolean isTerminated()
        Returns true if this cluster instance has be shutdown.
      • 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