public interface SharedIndexInformer<T> extends SharedInformer<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addIndexers(Map<String,Function<T,List<String>>> indexers)
Add indexers
|
Indexer<T> |
getIndexer()
returns the internal indexer store.
|
CompletableFuture<Void> |
stopped()
Return a future that will allow notification of informer stopping.
|
addEventHandler, addEventHandlerWithResyncPeriod, close, getApiTypeClass, getStore, hasSynced, isRunning, isWatching, lastSyncResourceVersion, run, stopvoid addIndexers(Map<String,Function<T,List<String>>> indexers)
indexers - indexersIndexer<T> getIndexer()
CompletableFuture<Void> stopped()
If SharedInformer.stop() is called, the future will be completed with a null value.
If an exception occurs that terminates the informer, then it will be exceptionally completed with that exception
- typically a WatcherException
Copyright © 2015–2022 Red Hat. All rights reserved.