/** * Sets the operation retry delay. * * @param retryDelayMillis the delay between operation retries in milliseconds * @return the proxy builder */ public MultiRaftProtocolBuilder withRetryDelayMillis(long retryDelayMillis) { return withRetryDelay(Duration.ofMillis(retryDelayMillis)); }
/** * Sets the operation retry delay. * * @param retryDelay the delay between operation retries * @param timeUnit the delay time unit * @return the proxy builder * @throws NullPointerException if the time unit is null */ public MultiRaftProtocolBuilder withRetryDelay(long retryDelay, TimeUnit timeUnit) { return withRetryDelay(Duration.ofMillis(timeUnit.toMillis(retryDelay))); }