ApiType - the type parameterpublic class DefaultControllerWatch<ApiType> extends Object implements ControllerWatch<ApiType>
| Constructor and Description |
|---|
DefaultControllerWatch(Class<ApiType> apiTypeClass,
WorkQueue<Request> workQueue,
Function<ApiType,Request> workKeyGenerator)
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.
|
void |
setApiTypeClass(Class<ApiType> apiTypeClass) |
void |
setOnAddFilterPredicate(Predicate<ApiType> onAddFilterPredicate) |
void |
setOnDeleteFilterPredicate(BiPredicate<ApiType,Boolean> onDeleteFilterPredicate) |
void |
setOnUpdateFilterPredicate(BiPredicate<ApiType,ApiType> onUpdateFilterPredicate) |
public 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()
ControllerWatchgetResourceClass in interface ControllerWatch<ApiType>public io.kubernetes.client.informer.ResourceEventHandler<ApiType> getResourceEventHandler()
ControllerWatchgetResourceEventHandler in interface ControllerWatch<ApiType>Copyright © 2019. All rights reserved.