Class DefaultSharedIndexInformer<T extends io.fabric8.kubernetes.api.model.HasMetadata,​L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>

    • Method Detail

      • addEventHandlerWithResyncPeriod

        public void addEventHandlerWithResyncPeriod​(ResourceEventHandler<T> handler,
                                                    long resyncPeriodMillis)
        Description copied from interface: SharedInformer
        Adds an event handler to the shared informer using the specified resync period. Events to a single handler are delivered sequentially, but there is no coordination between different handlers.
        Specified by:
        addEventHandlerWithResyncPeriod in interface SharedInformer<T extends io.fabric8.kubernetes.api.model.HasMetadata>
        Parameters:
        handler - the event handler
        resyncPeriodMillis - the specific resync period
      • lastSyncResourceVersion

        public String lastSyncResourceVersion()
        Description copied from interface: SharedInformer
        The resource version observed when last synced with the underlying store. The value returned is not synchronized with access to the underlying store and is not thread-safe.
        Specified by:
        lastSyncResourceVersion in interface SharedInformer<T extends io.fabric8.kubernetes.api.model.HasMetadata>
        Returns:
        string value
      • run

        public void run()
        Description copied from interface: SharedInformer
        Starts the shared informer, which will be stopped until stop() is called.
        Specified by:
        run in interface SharedInformer<T extends io.fabric8.kubernetes.api.model.HasMetadata>
      • stop

        public void stop()
        Description copied from interface: SharedInformer
        Stops the shared informer.
        Specified by:
        stop in interface SharedInformer<T extends io.fabric8.kubernetes.api.model.HasMetadata>
      • hasSynced

        public boolean hasSynced()
        Specified by:
        hasSynced in interface SharedInformer<T extends io.fabric8.kubernetes.api.model.HasMetadata>
      • getIndexer

        public Indexer getIndexer()
        Description copied from interface: SharedIndexInformer
        returns the internal indexer store.
        Specified by:
        getIndexer in interface SharedIndexInformer<T extends io.fabric8.kubernetes.api.model.HasMetadata>
        Returns:
        the internal indexer store