Interface ControllerWatch<ApiType extends io.kubernetes.client.common.KubernetesObject>

Type Parameters:
ApiType - the type parameter
All Known Implementing Classes:
DefaultControllerWatch

public interface ControllerWatch<ApiType extends io.kubernetes.client.common.KubernetesObject>
The interface Controller watch defines how a controller watches certain resources.
  • Method Details

    • getResourceClass

      Class<ApiType> getResourceClass()
      Gets the watching resource class.
      Returns:
      the resouce class
    • getResourceEventHandler

      io.kubernetes.client.informer.ResourceEventHandler<ApiType> getResourceEventHandler()
      Gets the event handler on watch events from the resource.
      Returns:
      the resource event handler
    • getResyncPeriod

      Duration getResyncPeriod()
      Gets resync period for the registering event handler.
      Returns:
      the resync period