Class DefaultSharedIndexInformerFactory
java.lang.Object
io.kubernetes.client.informer.SharedInformerFactory
io.micronaut.kubernetes.client.informer.DefaultSharedIndexInformerFactory
- All Implemented Interfaces:
SharedIndexInformerFactory
@Requires(property="kubernetes.client.informer.enabled",
notEquals="false",
defaultValue="true")
@Singleton
public class DefaultSharedIndexInformerFactory
extends io.kubernetes.client.informer.SharedInformerFactory
implements SharedIndexInformerFactory
Default implementation of the
SharedIndexInformerFactory. The created SharedIndexInformer is shared
in scope of the namespace.- Since:
- 3.1
- Author:
- Pavol Gressa
-
Field Summary
FieldsFields inherited from class io.kubernetes.client.informer.SharedInformerFactory
informers -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSharedIndexInformerFactory(InformerConfiguration informerConfiguration, io.kubernetes.client.openapi.ApiClient apiClient) Deprecated.DefaultSharedIndexInformerFactory(InformerConfiguration informerConfiguration, jakarta.inject.Provider<io.kubernetes.client.openapi.ApiClient> apiClient) CreatesDefaultSharedIndexInformer. -
Method Summary
Modifier and TypeMethodDescription<ApiType extends io.kubernetes.client.common.KubernetesObject>
io.kubernetes.client.informer.SharedIndexInformer<ApiType>getExistingSharedIndexInformer(String namespace, Class<ApiType> apiTypeClass) Get existingSharedIndexInformer.List<io.kubernetes.client.informer.SharedIndexInformer>Get all existingSharedIndexInformer.<ApiType extends io.kubernetes.client.common.KubernetesObject,ApiListType extends io.kubernetes.client.common.KubernetesListObject>
io.kubernetes.client.informer.SharedIndexInformer<ApiType>sharedIndexInformerFor(Class<ApiType> apiType, Class<ApiListType> apiListType, String resourcePlural, String apiGroup, @Nullable String namespace, @Nullable String labelSelector, @Nullable Long resyncCheckPeriod, boolean waitForSync) Creates newSharedIndexInformer.<ApiType extends io.kubernetes.client.common.KubernetesObject,ApiListType extends io.kubernetes.client.common.KubernetesListObject>
List<io.kubernetes.client.informer.SharedIndexInformer<? extends io.kubernetes.client.common.KubernetesObject>>sharedIndexInformersFor(Class<ApiType> apiTypeClass, Class<ApiListType> apiListTypeClass, String resourcePlural, String apiGroup, @Nullable List<String> namespaces, @Nullable String labelSelector, @Nullable Long resyncCheckPeriod, boolean waitForSync) Creates newSharedIndexInformers for every namespace fromnamespacesparam.voidStop all registered informers.Methods inherited from class io.kubernetes.client.informer.SharedInformerFactory
getExistingSharedIndexInformer, sharedIndexInformerFor, sharedIndexInformerFor, sharedIndexInformerFor, sharedIndexInformerFor, sharedIndexInformerFor, sharedIndexInformerFor, sharedIndexInformerFor, sharedIndexInformerFor, startAllRegisteredInformers, stopAllRegisteredInformersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.kubernetes.client.informer.SharedIndexInformerFactory
startAllRegisteredInformers
-
Field Details
-
INFORMER_ENABLED
- See Also:
-
-
Constructor Details
-
DefaultSharedIndexInformerFactory
@Deprecated public DefaultSharedIndexInformerFactory(InformerConfiguration informerConfiguration, io.kubernetes.client.openapi.ApiClient apiClient) Deprecated.Moved to use the lazy constructor, seeDefaultSharedIndexInformerFactory(InformerConfiguration, Provider)CreatesDefaultSharedIndexInformer.- Parameters:
informerConfiguration- informer configurationapiClient- api client
-
DefaultSharedIndexInformerFactory
@Inject public DefaultSharedIndexInformerFactory(InformerConfiguration informerConfiguration, jakarta.inject.Provider<io.kubernetes.client.openapi.ApiClient> apiClient) CreatesDefaultSharedIndexInformer.- Parameters:
informerConfiguration- informer configurationapiClient- api client- Since:
- 3.4.0
-
-
Method Details
-
stopAllRegisteredInformers
public void stopAllRegisteredInformers()Description copied from interface:SharedIndexInformerFactoryStop all registered informers.- Specified by:
stopAllRegisteredInformersin interfaceSharedIndexInformerFactory- Overrides:
stopAllRegisteredInformersin classio.kubernetes.client.informer.SharedInformerFactory
DefaultSharedIndexInformerFactory(InformerConfiguration, Provider)