Interface SharedInformerFactory


  • public interface SharedInformerFactory
    • Method Detail

      • sharedIndexInformerFor

        <T extends io.fabric8.kubernetes.api.model.HasMetadata> SharedIndexInformer<T> sharedIndexInformerFor​(Class<T> apiTypeClass,
                                                                                                              long resyncPeriodInMillis)
        Constructs and returns a shared index informer with resync period specified. And the informer cache will be overwritten. Note:It watches for events in ALL NAMESPACES.
        Type Parameters:
        T - the type parameter (should extend HasMetadata and implement Namespaced) if Namespace scoped resource
        Parameters:
        apiTypeClass - apiType class
        resyncPeriodInMillis - resync period in milliseconds
        Returns:
        the shared index informer
      • getExistingSharedIndexInformer

        <T> SharedIndexInformer<T> getExistingSharedIndexInformer​(Class<T> apiTypeClass)
        Gets existing shared index informer, return null if the requesting informer is never constructed. If there are multiple SharedIndexInformer objects corresponding to a Kubernetes resource, then it returns the first one
        Type Parameters:
        T - type of API type
        Parameters:
        apiTypeClass - API type class
        Returns:
        SharedIndexInformer object
      • startAllRegisteredInformers

        Future<Void> startAllRegisteredInformers()
        Starts all registered informers in an asynchronous fashion.
        Returns:
        Future for status of all started informer tasks.
      • stopAllRegisteredInformers

        void stopAllRegisteredInformers()
        Stop all registered informers and shut down thread pool.