Class Cluster

  • All Implemented Interfaces:
    Extension

    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

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