public interface Informable<T>
| Modifier and Type | Method and Description |
|---|---|
default SharedIndexInformer<T> |
inform(ResourceEventHandler<T> handler)
Similar to a
Watch, but will attempt to handle failures after successfully started. |
SharedIndexInformer<T> |
inform(ResourceEventHandler<T> handler,
long resync)
Similar to a
Watch, but will attempt to handle failures after successfully started. |
Informable<T> |
withIndexers(Map<String,Function<T,List<String>>> indexers)
The indexers to add to
SharedInformers created by subsequent inform calls; |
Informable<T> withIndexers(Map<String,Function<T,List<String>>> indexers)
SharedInformers created by subsequent inform calls;indexers - to customize the indexingInformabledefault SharedIndexInformer<T> inform(ResourceEventHandler<T> handler)
Watch, but will attempt to handle failures after successfully started.
and provides a store of all the current resources.
This returned informer will not support resync.
This call will be blocking for the initial list and watch.
You are expected to call stop to terminate the underlying Watch.
Additional handlers can be added, but processing of the events will be in the websocket thread, so consider non-blocking handler operations for more than one handler.
handler - to notifySharedIndexInformerSharedIndexInformer<T> inform(ResourceEventHandler<T> handler, long resync)
Watch, but will attempt to handle failures after successfully started.
and provides a store of all the current resources.
This call will be blocking for the initial list and watch.
You are expected to call stop to terminate the underlying Watch.
Additional handlers can be added, but processing of the events will be in the websocket thread, so consider non-blocking handleroperations for more than one handler.
handler - to notifyresync - the resync period or 0 for no resyncSharedIndexInformerCopyright © 2015–2020 Red Hat. All rights reserved.