public interface SharedInformerFactory
| Modifier and Type | Method and Description |
|---|---|
void |
addSharedInformerEventListener(SharedInformerEventListener event)
Deprecated.
use
SharedIndexInformer.stopped() method to get notified when an informer stops. |
<T> SharedIndexInformer<T> |
getExistingSharedIndexInformer(Class<T> apiTypeClass)
Gets existing shared index informer, return null if the requesting informer
is never constructed.
|
SharedInformerFactory |
inNamespace(String namespace)
Deprecated.
use
Informable instead |
<T extends io.fabric8.kubernetes.api.model.HasMetadata> |
sharedIndexInformerFor(Class<T> apiTypeClass,
long resyncPeriodInMillis)
Constructs and returns a shared index informer with resync period specified.
|
Future<Void> |
startAllRegisteredInformers()
Starts all registered informers in an asynchronous fashion.
|
void |
stopAllRegisteredInformers()
Stop all registered informers and shut down thread pool.
|
SharedInformerFactory |
withName(String name)
Deprecated.
use
Informable instead |
@Deprecated SharedInformerFactory inNamespace(String namespace)
Informable insteadSharedInformerFactorynamespace - namespace to configureSharedInformerFactory with namespace configured@Deprecated SharedInformerFactory withName(String name)
Informable insteadSharedInformerFactoryname - name to be configuredSharedInformerFactory with name configured<T extends io.fabric8.kubernetes.api.model.HasMetadata> SharedIndexInformer<T> sharedIndexInformerFor(Class<T> apiTypeClass, long resyncPeriodInMillis)
T - the type parameter (should extend HasMetadata and implement
Namespaced) if Namespace scoped resourceapiTypeClass - apiType classresyncPeriodInMillis - resync period in milliseconds<T> SharedIndexInformer<T> getExistingSharedIndexInformer(Class<T> apiTypeClass)
T - type of API typeapiTypeClass - API type classFuture<Void> startAllRegisteredInformers()
Future for status of all started informer tasks.void stopAllRegisteredInformers()
@Deprecated void addSharedInformerEventListener(SharedInformerEventListener event)
SharedIndexInformer.stopped() method to get notified when an informer stops.Copyright © 2015–2023 Red Hat. All rights reserved.