Class Controllers
java.lang.Object
io.kubernetes.client.extended.controller.Controllers
The Controllers is a set of commonly used utility functions for constructing controller.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe Default key func function works for work-queue, which extracts namespace and name via reflection from the objects.static ThreadFactory
namedControllerThreadFactory
(String controllerName) Named thread factory for constructing controller, useful when debugging dumping status of controller worker threads.
-
Constructor Details
-
Controllers
public Controllers()
-
-
Method Details
-
defaultReflectiveKeyFunc
public static <ApiType extends io.kubernetes.client.common.KubernetesObject> Function<ApiType,Request> defaultReflectiveKeyFunc()The Default key func function works for work-queue, which extracts namespace and name via reflection from the objects.- Type Parameters:
ApiType
- the type parameter- Returns:
- the function
-
namedControllerThreadFactory
Named thread factory for constructing controller, useful when debugging dumping status of controller worker threads. e.g. for a controller named `foo`, its threads will be named `foo-1`, `foo-2`...- Parameters:
controllerName
- the controller name- Returns:
- the thread factory
-