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 void
addSharedInformerEventListener(SharedInformerEventListener event)
<T> SharedIndexInformer<T>
getExistingSharedIndexInformer(Class<T> apiTypeClass)
SharedInformerFactory
inNamespace(String namespace)
<T extends io.fabric8.kubernetes.api.model.HasMetadata>
SharedIndexInformer<T>sharedIndexInformerFor(Class<T> apiTypeClass, long resyncPeriodInMillis)
Future<Void>
startAllRegisteredInformers()
void
stopAllRegisteredInformers()
SharedInformerFactory
withName(String name)
-
-
-
Constructor Detail
-
SharedInformerFactoryImpl
public SharedInformerFactoryImpl(KubernetesClient client)
-
-
Method Detail
-
inNamespace
public SharedInformerFactory inNamespace(String namespace)
- Specified by:
inNamespace
in interfaceSharedInformerFactory
-
withName
public SharedInformerFactory withName(String name)
- Specified by:
withName
in interfaceSharedInformerFactory
-
sharedIndexInformerFor
public <T extends io.fabric8.kubernetes.api.model.HasMetadata> SharedIndexInformer<T> sharedIndexInformerFor(Class<T> apiTypeClass, long resyncPeriodInMillis)
- Specified by:
sharedIndexInformerFor
in interfaceSharedInformerFactory
-
getExistingSharedIndexInformer
public <T> SharedIndexInformer<T> getExistingSharedIndexInformer(Class<T> apiTypeClass)
- Specified by:
getExistingSharedIndexInformer
in interfaceSharedInformerFactory
-
startAllRegisteredInformers
public Future<Void> startAllRegisteredInformers()
- Specified by:
startAllRegisteredInformers
in interfaceSharedInformerFactory
-
stopAllRegisteredInformers
public void stopAllRegisteredInformers()
- Specified by:
stopAllRegisteredInformers
in interfaceSharedInformerFactory
-
addSharedInformerEventListener
public void addSharedInformerEventListener(SharedInformerEventListener event)
- Specified by:
addSharedInformerEventListener
in interfaceSharedInformerFactory
-
-