Class 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 Detail

      • Cluster

        public Cluster()
    • Method Detail

      • 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)
      • selfMember

        public abstract Member selfMember()
      • 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