@Test void buildShouldThrowWhenNegativeJitterFactor() { assertThatThrownBy(() -> RetryBackoffConfiguration.builder() .maxRetries(DEFAULT_MAX_RETRIES) .firstBackoff(DEFAULT_FIRST_BACKOFF) .jitterFactor(-2.5) .build()) .isInstanceOf(IllegalArgumentException.class) .hasMessage("jitterFactor is not allowed to be negative or greater than 1"); }
public static RequireMaxRetries builder() { return maxRetries -> firstBackoff -> jitterFactor -> new ReadyToBuild(maxRetries, firstBackoff, jitterFactor); }
RetryBackoffConfiguration { public static RequireMaxRetries builder() { return maxRetries -> firstBackoff -> jitterFactor -> new ReadyToBuild(maxRetries, firstBackoff, jitterFactor); } }
RetryBackoffConfiguration { public static RequireMaxRetries builder() { return maxRetries -> firstBackoff -> jitterFactor -> new ReadyToBuild(maxRetries, firstBackoff, jitterFactor); } private  RetryBackoffConfiguration(int maxRetries, Duration firstBackoff, double jitterFactor); }
RetryBackoffConfiguration { public static RequireMaxRetries builder() { return maxRetries -> firstBackoff -> jitterFactor -> new ReadyToBuild(maxRetries, firstBackoff, jitterFactor); } private  RetryBackoffConfiguration(int maxRetries, Duration firstBackoff, double jitterFactor); static RequireMaxRetries builder(); int getMaxRetries(); Duration getFirstBackoff(); double getJitterFactor(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
RetryBackoffConfiguration { public static RequireMaxRetries builder() { return maxRetries -> firstBackoff -> jitterFactor -> new ReadyToBuild(maxRetries, firstBackoff, jitterFactor); } private  RetryBackoffConfiguration(int maxRetries, Duration firstBackoff, double jitterFactor); static RequireMaxRetries builder(); int getMaxRetries(); Duration getFirstBackoff(); double getJitterFactor(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); static final RetryBackoffConfiguration DEFAULT; }