Skip to content

Commit d3e7e47

Browse files
committed
docs: add javadoc parameter descriptions
Signed-off-by: Chris Laprun <[email protected]>
1 parent f6b2777 commit d3e7e47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/PrimaryUpdateAndCacheUtils.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ public static <P extends HasMetadata> P updateAndCacheResource(
134134
* @param modificationFunction modifications to make on primary
135135
* @param updateMethod the update method implementation
136136
* @param maxRetry maximum number of retries before giving up
137+
* @param cachePollTimeoutMillis maximum amount of milliseconds to wait for the updated resource to appear in cache
138+
* @param cachePollPeriodMillis cache polling period, in milliseconds
137139
* @param <P> primary type
138140
* @return the updated resource
139141
*/
@@ -145,7 +147,7 @@ public static <P extends HasMetadata> P updateAndCacheResource(
145147
UnaryOperator<P> updateMethod,
146148
int maxRetry,
147149
long cachePollTimeoutMillis,
148-
long pollDelayMillis) {
150+
long cachePollPeriodMillis) {
149151

150152
if (log.isDebugEnabled()) {
151153
log.debug("Conflict retrying update for: {}", ResourceID.fromResource(resourceToUpdate));
@@ -192,7 +194,7 @@ public static <P extends HasMetadata> P updateAndCacheResource(
192194
resourceToUpdate.getMetadata().getNamespace(),
193195
e.getCode());
194196
resourceToUpdate =
195-
pollLocalCache(context, resourceToUpdate, cachePollTimeoutMillis, pollDelayMillis);
197+
pollLocalCache(context, resourceToUpdate, cachePollTimeoutMillis, cachePollPeriodMillis);
196198
}
197199
}
198200
}

0 commit comments

Comments
 (0)