public static RetryPolicy defaultWorkerMasterClientRetry(
      Duration workerMasterConnectRetryTimeout) {
    return ExponentialTimeBoundedRetry.builder()
        .withMaxDuration(workerMasterConnectRetryTimeout)
        .withInitialSleep(Duration.ofMillis(100))
        .withMaxSleep(Duration.ofSeconds(5))
        .build();
  }
public static RetryPolicy defaultWorkerMasterClientRetry ( Duration workerMasterConnectRetryTimeout ) { return ExponentialTimeBoundedRetry . builder ( ) . withMaxDuration ( workerMasterConnectRetryTimeout ) . withInitialSleep ( Duration . ofMillis ( 100 ) ) . withMaxSleep ( Duration . ofSeconds ( 5 ) ) . build ( ) ; }
@param workerMasterConnectRetryTimeout the max duration to wait between retrying for worker
and master
@return the default worker to master client retry