public int getRetryCount() {
    return retryCount;
  }
Assign the peer to be used for the task.

@param peer The peer to assign to the task.
@return True if the peer was assigned, false otherwise.
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/AbstractRetryingPeerTask.java