Class NodeLeftEvent

    • Constructor Detail

      • NodeLeftEvent

        public NodeLeftEvent​(NodeModel node,
                             ICluster cluster)
        Creates a new event with the given data for when a node left the cluster.
        Parameters:
        node - Node that left the cluster.
        cluster - Cluster from which the node left.
    • Method Detail

      • isHandleTakeover

        public boolean isHandleTakeover()
        Returns:
        Whether any event listener is able to take over the node that left the cluster.
      • setHandleTakeover

        public void setHandleTakeover​(boolean handleTakeover)
        Parameters:
        handleTakeover - Whether the caller of this method (i.e. the event listener) was able to take over the node that left the cluster.
      • handleTakeover

        public NodeLeftEvent handleTakeover​(boolean handleTakeover)
        Parameters:
        handleTakeover - Whether the caller of this method (i.e. the event listener) was able to take over the node that left the cluster.
        Returns:
        This event for chaining method calls.