We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6428a3 commit 509a1efCopy full SHA for 509a1ef
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/BaseControl.java
@@ -1,5 +1,6 @@
1
package io.javaoperatorsdk.operator.api.reconciler;
2
3
+import java.time.Duration;
4
import java.util.Optional;
5
import java.util.concurrent.TimeUnit;
6
@@ -12,6 +13,11 @@ public T rescheduleAfter(long delay) {
12
13
return (T) this;
14
}
15
16
+ public T rescheduleAfter(Duration delay) {
17
+ this.scheduleDelay = delay.toMillis();
18
+ return (T) this;
19
+ }
20
+
21
public T rescheduleAfter(long delay, TimeUnit timeUnit) {
22
return rescheduleAfter(timeUnit.toMillis(delay));
23
0 commit comments