Class SharedInformerFactoryImpl
- java.lang.Object
-
- io.fabric8.kubernetes.client.informers.impl.SharedInformerFactoryImpl
-
- All Implemented Interfaces:
SharedInformerFactory
public class SharedInformerFactoryImpl extends Object implements SharedInformerFactory
SharedInformerFactory class constructs and caches informers for api types. This has been taken from https://github.com/kubernetes-client/java/blob/main/util/src/main/java/io/kubernetes/client/informer/SharedInformerFactory.java which is ported from official go client https://github.com/kubernetes/client-go/blob/master/informers/factory.go
-
-
Constructor Summary
Constructors Constructor Description SharedInformerFactoryImpl(KubernetesClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSharedInformerEventListener(SharedInformerEventListener event)<T> SharedIndexInformer<T>getExistingSharedIndexInformer(Class<T> apiTypeClass)SharedInformerFactoryinNamespace(String namespace)<T extends io.fabric8.kubernetes.api.model.HasMetadata>
SharedIndexInformer<T>sharedIndexInformerFor(Class<T> apiTypeClass, long resyncPeriodInMillis)Future<Void>startAllRegisteredInformers()voidstopAllRegisteredInformers()SharedInformerFactorywithName(String name)
-
-
-
Constructor Detail
-
SharedInformerFactoryImpl
public SharedInformerFactoryImpl(KubernetesClient client)
-
-
Method Detail
-
inNamespace
public SharedInformerFactory inNamespace(String namespace)
- Specified by:
inNamespacein interfaceSharedInformerFactory
-
withName
public SharedInformerFactory withName(String name)
- Specified by:
withNamein interfaceSharedInformerFactory
-
sharedIndexInformerFor
public <T extends io.fabric8.kubernetes.api.model.HasMetadata> SharedIndexInformer<T> sharedIndexInformerFor(Class<T> apiTypeClass, long resyncPeriodInMillis)
- Specified by:
sharedIndexInformerForin interfaceSharedInformerFactory
-
getExistingSharedIndexInformer
public <T> SharedIndexInformer<T> getExistingSharedIndexInformer(Class<T> apiTypeClass)
- Specified by:
getExistingSharedIndexInformerin interfaceSharedInformerFactory
-
startAllRegisteredInformers
public Future<Void> startAllRegisteredInformers()
- Specified by:
startAllRegisteredInformersin interfaceSharedInformerFactory
-
stopAllRegisteredInformers
public void stopAllRegisteredInformers()
- Specified by:
stopAllRegisteredInformersin interfaceSharedInformerFactory
-
addSharedInformerEventListener
public void addSharedInformerEventListener(SharedInformerEventListener event)
- Specified by:
addSharedInformerEventListenerin interfaceSharedInformerFactory
-
-