Skip to content

Commit 4971655

Browse files
committed
refactor: Retry now extends RetryConfiguration
1 parent 18bf0c8 commit 4971655

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/RetryConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ public interface RetryConfiguration {
66

77
int DEFAULT_MAX_ATTEMPTS = 5;
88
long DEFAULT_INITIAL_INTERVAL = 2000L;
9-
109
double DEFAULT_MULTIPLIER = 1.5D;
1110

1211
default int getMaxAttempts() {

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/retry/GenericRetry.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
import io.javaoperatorsdk.operator.api.config.RetryConfiguration;
44

55
public class GenericRetry implements Retry {
6-
7-
public static final int DEFAULT_MAX_ATTEMPTS = 5;
8-
public static final long DEFAULT_INITIAL_INTERVAL = 2000L;
9-
public static final double DEFAULT_MULTIPLIER = 1.5D;
10-
116
private int maxAttempts = DEFAULT_MAX_ATTEMPTS;
127
private long initialInterval = DEFAULT_INITIAL_INTERVAL;
138
private double intervalMultiplier = DEFAULT_MULTIPLIER;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package io.javaoperatorsdk.operator.processing.retry;
22

3-
public interface Retry {
3+
import io.javaoperatorsdk.operator.api.config.RetryConfiguration;
4+
5+
public interface Retry extends RetryConfiguration {
46

57
RetryExecution initExecution();
68
}

0 commit comments

Comments
 (0)