public class Controllers
extends java.lang.Object
Constructor and Description |
---|
Controllers() |
Modifier and Type | Method and Description |
---|---|
static <ApiType> java.util.function.Function<ApiType,Request> |
defaultReflectiveKeyFunc()
The Default key func function works for work-queue, which extracts namespace and name via
reflection from the objects.
|
static java.util.concurrent.ThreadFactory |
namedControllerThreadFactory(java.lang.String controllerName)
Named thread factory for constructing controller, useful when debugging dumping status of
controller worker threads.
|
public static <ApiType> java.util.function.Function<ApiType,Request> defaultReflectiveKeyFunc()
ApiType
- the type parameterpublic static java.util.concurrent.ThreadFactory namedControllerThreadFactory(java.lang.String controllerName)
controllerName
- the controller nameCopyright © 2019. All rights reserved.