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 Summary
Modifier and TypeMethodDescriptionGets the watching resource class.io.kubernetes.client.informer.ResourceEventHandler<ApiType>
Gets the event handler on watch events from the resource.Gets resync period for the registering event handler.
-
Method Details
-
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
-