Skip to content

Commit 5cb0064

Browse files
committed
fixes from CR
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent ef31d50 commit 5cb0064

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/expectation/PeriodicCleanerExpectationManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ public PeriodicCleanerExpectationManager(Duration period, IndexedResourceCache<P
5959
this::clean, period.toMillis(), period.toMillis(), TimeUnit.MICROSECONDS);
6060
}
6161

62-
public void clean() {
62+
protected void clean() {
6363
registeredExpectations.entrySet().removeIf(e -> primaryCache.get(e.getKey()).isEmpty());
6464
}
6565

66-
void stop() {
66+
/** Allows to stop manager. Note that you usually don't have to stop the manager explicitly. */
67+
public void stop() {
6768
scheduler.shutdownNow();
6869
}
6970
}

0 commit comments

Comments
 (0)