Class SharedProcessor<ApiType extends io.kubernetes.client.common.KubernetesObject>

java.lang.Object
io.kubernetes.client.informer.cache.SharedProcessor<ApiType>

public class SharedProcessor<ApiType extends io.kubernetes.client.common.KubernetesObject> extends Object
  • Constructor Details

    • SharedProcessor

      public SharedProcessor()
    • SharedProcessor

      public SharedProcessor(ExecutorService threadPool)
    • SharedProcessor

      public SharedProcessor(ExecutorService threadPool, Duration timeout)
  • Method Details

    • addAndStartListener

      public void addAndStartListener(ProcessorListener<ApiType> processorListener)
      addAndStartListener first adds the specific processorListener then starts the listener with executor.
      Parameters:
      processorListener - specific processor listener
    • addListener

      public void addListener(ProcessorListener<ApiType> processorListener)
      addListener adds the specific processorListener, but not start it.
      Parameters:
      processorListener - specific processor listener
    • run

      public void run()
      starts the processor listeners.
    • distribute

      public void distribute(ProcessorListener.Notification<ApiType> obj, boolean isSync)
      distribute the object among listeners.
      Parameters:
      obj - specific obj
      isSync - is sync or not
    • shouldResync

      public boolean shouldResync()
    • stop

      public void stop()