Skip to content

Commit 334f757

Browse files
committed
override
1 parent 16cff3a commit 334f757

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ public class ConfigurationServiceOverrider {
1919
private Config clientConfig;
2020
private Boolean checkCR;
2121
private Integer concurrentReconciliationThreads;
22+
private Integer minConcurrentReconciliationThreads;
2223
private Integer concurrentWorkflowExecutorThreads;
24+
private Integer minConcurrentWorkflowExecutorThreads;
2325
private Cloner cloner;
2426
private Integer timeoutSeconds;
2527
private Boolean closeClientOnStop;
@@ -56,6 +58,16 @@ public ConfigurationServiceOverrider withConcurrentWorkflowExecutorThreads(int t
5658
return this;
5759
}
5860

61+
public ConfigurationServiceOverrider withMinConcurrentReconciliationThreads(int threadNumber) {
62+
this.minConcurrentReconciliationThreads = threadNumber;
63+
return this;
64+
}
65+
66+
public ConfigurationServiceOverrider withMinConcurrentWorkflowExecutorThreads(int threadNumber) {
67+
this.minConcurrentWorkflowExecutorThreads = threadNumber;
68+
return this;
69+
}
70+
5971
public ConfigurationServiceOverrider withResourceCloner(Cloner cloner) {
6072
this.cloner = cloner;
6173
return this;
@@ -149,6 +161,18 @@ public int concurrentWorkflowExecutorThreads() {
149161
: original.concurrentWorkflowExecutorThreads();
150162
}
151163

164+
@Override
165+
public int minConcurrentReconciliationThreads() {
166+
return minConcurrentReconciliationThreads != null ? minConcurrentReconciliationThreads
167+
: original.minConcurrentReconciliationThreads();
168+
}
169+
170+
@Override
171+
public int minConcurrentWorkflowExecutorThreads() {
172+
return minConcurrentWorkflowExecutorThreads != null ? minConcurrentWorkflowExecutorThreads
173+
: original.minConcurrentWorkflowExecutorThreads();
174+
}
175+
152176
@Override
153177
public int getTerminationTimeoutSeconds() {
154178
return timeoutSeconds != null ? timeoutSeconds : original.getTerminationTimeoutSeconds();

0 commit comments

Comments
 (0)