Skip to content

Commit 3b9adcb

Browse files
committed
docs: item store on @ControllerConfiguration
1 parent 6dc29ee commit 3b9adcb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/ControllerConfiguration.java

+15
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,20 @@ MaxReconciliationInterval maxReconciliationInterval() default @MaxReconciliation
128128
*/
129129
Class<? extends RateLimiter> rateLimiter() default LinearRateLimiter.class;
130130

131+
/**
132+
* Replaces the item store in informer. See underling <a href=
133+
* "https://github.com/fabric8io/kubernetes-client/blob/43b67939fde91046ab7fb0c362f500c2b46eb59e/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/informers/impl/DefaultSharedIndexInformer.java#L273">
134+
* method</a> in fabric8 client informer implementation.
135+
*
136+
* The main goal, is to be able to use limited caches.
137+
*
138+
* See {@link io.javaoperatorsdk.operator.processing.event.source.cache.BoundedItemStore} and
139+
* <a href=
140+
* "https://github.com/java-operator-sdk/java-operator-sdk/blob/d6eda0138dba6d93c0ff22a5ffcaa7663fa65ca2/caffein-bounded-cache-support/src/main/java/io/javaoperatorsdk/operator/processing/event/source/cache/CaffeinBoundedCache.java">
141+
* CaffeinBoundedCache</a>
142+
*
143+
* @return Optional ItemStore implementation. If present this item store will be used inside the
144+
* informers.
145+
*/
131146
Class<? extends ItemStore> itemStore() default ItemStore.class;
132147
}

0 commit comments

Comments
 (0)