[java] Deleting deprecated FluentWait methods, users should use methods that accept Duration
protected final static long DEFAULT_SLEEP_TIMEOUT = 500;
- /**
- * @deprecated use {@link #DEFAULT_WAIT_DURATION}
- */
- @Deprecated
- public static final Duration FIVE_HUNDRED_MILLIS = Duration.ofMillis(DEFAULT_SLEEP_TIMEOUT);
-
private static final Duration DEFAULT_WAIT_DURATION = Duration.ofMillis(DEFAULT_SLEEP_TIMEOUT);
private final T input;
@@ -108,21 +102,6 @@ public FluentWait(T input, java.time.Clock clock, Sleeper sleeper) {
this.sleeper = requireNonNull(sleeper);
}
- /**
- * Sets how long to wait for the evaluated condition to be true. The default timeout is
- * {@link #FIVE_HUNDRED_MILLIS}.
- *
- * @param duration The timeout duration.
- * @param unit The unit of time.
- * @return A self reference.
- * @deprecated use {@link #withTimeout(Duration)}
- */
- @Deprecated
- public FluentWait<T> withTimeout(long duration, TimeUnit unit) {
- return withTimeout(Duration.of(duration, toChronoUnit(unit)));
- }
-
-
/**
* Sets how long to wait for the evaluated condition to be true. The default timeout is
* {@link #DEFAULT_WAIT_DURATION}.
@@ -157,23 +136,6 @@ public FluentWait(T input, java.time.Clock clock, Sleeper sleeper) {
return this;
}
- /**
- * Sets how often the condition should be evaluated.
- *
- * <p>
- * In reality, the interval may be greater as the cost of actually evaluating a condition function
- * is not factored in. The default polling interval is {@link #FIVE_HUNDRED_MILLIS}.
- *
- * @param duration The timeout duration.
- * @param unit The unit of time.
- * @return A self reference.
- * @deprecated use {@link #pollingEvery(Duration)}
- */
- @Deprecated
- public FluentWait<T> pollingEvery(long duration, TimeUnit unit) {
- return pollingEvery(Duration.of(duration, toChronoUnit(unit)));
- }
-
/**
* Sets how often the condition should be evaluated.
*
