Interface Attempt

  • All Known Subinterfaces:
    FailedAttempt

    public interface Attempt
    Attempt.
    • Method Detail

      • attempt

        int attempt()
        Returns the current attempts (starting with zero for the first attempt).
        Returns:
        Attempts count.
      • lastTriedNode

        ClusterNode lastTriedNode()
        Returns the last tried node.
        Returns:
        Last tried node.
      • allTriedNodes

        Set<ClusterNode> allTriedNodes()
        Returns an immutable set of all tried nodes.
        Returns:
        Immutable set of all tried nodes.
      • hasTriedNode

        default boolean hasTriedNode​(ClusterNode node)
        Returns true if the specified node is in the allTriedNodes() set.
        Parameters:
        node - Node to check.
        Returns:
        true if the specified node is in the allTriedNodes() set.
      • isFirstAttempt

        default boolean isFirstAttempt()
        Returns true if this is the first attempt (attempt() == 0).
        Returns:
        true if this is the first attempt.