Skip to content

Commit

Permalink
Remove deprecated for removal retry policy with Java function.
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Dec 17, 2024
1 parent 8c8d41e commit 59aa690
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 84 deletions.
7 changes: 0 additions & 7 deletions src/main/java/io/vertx/circuitbreaker/CircuitBreaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,6 @@ default <T> CircuitBreaker failurePolicy(FailurePolicy<T> failurePolicy) {
@CacheReturn
String name();

/**
* @deprecated use {@link #retryPolicy(RetryPolicy)} instead
*/
@Fluent
@Deprecated
CircuitBreaker retryPolicy(Function<Integer, Long> retryPolicy);

/**
* Set a {@link RetryPolicy} which computes a delay before a retry attempt.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,6 @@ public CircuitBreakerOptions options() {
return options;
}

@Override
public CircuitBreaker retryPolicy(Function<Integer, Long> retryPolicy) {
this.retryPolicy = (failure, retryCount) -> retryPolicy.apply(retryCount);
return this;
}

@Override
public CircuitBreaker retryPolicy(RetryPolicy retryPolicy) {
this.retryPolicy = retryPolicy;
Expand Down

This file was deleted.

0 comments on commit 59aa690

Please sign in to comment.