ApiType
- the type parameterpublic class DefaultControllerWatch<ApiType extends io.kubernetes.client.common.KubernetesObject> extends Object implements ControllerWatch<ApiType>
Constructor and Description |
---|
DefaultControllerWatch(Class<ApiType> apiTypeClass,
WorkQueue<Request> workQueue,
Function<ApiType,Request> workKeyGenerator,
Duration resyncPeriod)
Instantiates a new Work queue resource event handler.
|
Modifier and Type | Method and Description |
---|---|
Class<ApiType> |
getApiTypeClass() |
Predicate<ApiType> |
getOnAddFilterPredicate() |
BiPredicate<ApiType,Boolean> |
getOnDeleteFilterPredicate() |
BiPredicate<ApiType,ApiType> |
getOnUpdateFilterPredicate() |
Class<ApiType> |
getResourceClass()
Gets the watching resource class.
|
io.kubernetes.client.informer.ResourceEventHandler<ApiType> |
getResourceEventHandler()
Gets the event handler on watch events from the resource.
|
Duration |
getResyncPeriod()
Gets resync period for the registering event handler.
|
void |
setOnAddFilterPredicate(Predicate<ApiType> onAddFilterPredicate) |
void |
setOnDeleteFilterPredicate(BiPredicate<ApiType,Boolean> onDeleteFilterPredicate) |
void |
setOnUpdateFilterPredicate(BiPredicate<ApiType,ApiType> onUpdateFilterPredicate) |
public DefaultControllerWatch(Class<ApiType> apiTypeClass, WorkQueue<Request> workQueue, Function<ApiType,Request> workKeyGenerator, Duration resyncPeriod)
workQueue
- the work queueworkKeyGenerator
- the work key generatorpublic void setOnAddFilterPredicate(Predicate<ApiType> onAddFilterPredicate)
public BiPredicate<ApiType,ApiType> getOnUpdateFilterPredicate()
public void setOnUpdateFilterPredicate(BiPredicate<ApiType,ApiType> onUpdateFilterPredicate)
public BiPredicate<ApiType,Boolean> getOnDeleteFilterPredicate()
public void setOnDeleteFilterPredicate(BiPredicate<ApiType,Boolean> onDeleteFilterPredicate)
public Class<ApiType> getResourceClass()
ControllerWatch
getResourceClass
in interface ControllerWatch<ApiType extends io.kubernetes.client.common.KubernetesObject>
public io.kubernetes.client.informer.ResourceEventHandler<ApiType> getResourceEventHandler()
ControllerWatch
getResourceEventHandler
in interface ControllerWatch<ApiType extends io.kubernetes.client.common.KubernetesObject>
public Duration getResyncPeriod()
ControllerWatch
getResyncPeriod
in interface ControllerWatch<ApiType extends io.kubernetes.client.common.KubernetesObject>
Copyright © 2021. All rights reserved.