public class ControllerWatchBuilder<ApiType extends io.kubernetes.client.common.KubernetesObject> extends Object
Modifier and Type | Method and Description |
---|---|
DefaultControllerWatch<ApiType> |
build()
End building controller-watch.
|
ControllerWatchBuilder<ApiType> |
withOnAddFilter(Predicate<ApiType> filter)
Sets a filter for add notification.
|
ControllerWatchBuilder<ApiType> |
withOnDeleteFilter(BiPredicate<ApiType,Boolean> filter)
Sets a filter for delete notification.
|
ControllerWatchBuilder<ApiType> |
withOnUpdateFilter(BiPredicate<ApiType,ApiType> filter)
Sets a filter for update notification.
|
ControllerWatchBuilder<ApiType> |
withResyncPeriod(Duration resyncPeriod) |
ControllerWatchBuilder<ApiType> |
withWorkQueueKeyFunc(Function<ApiType,Request> workKeyGenerator)
Overrides work-queue key-func for the watch.
|
public ControllerWatchBuilder<ApiType> withOnAddFilter(Predicate<ApiType> filter)
filter
- the filterpublic ControllerWatchBuilder<ApiType> withOnUpdateFilter(BiPredicate<ApiType,ApiType> filter)
filter
- the filterpublic ControllerWatchBuilder<ApiType> withOnDeleteFilter(BiPredicate<ApiType,Boolean> filter)
filter
- the filterpublic ControllerWatchBuilder<ApiType> withWorkQueueKeyFunc(Function<ApiType,Request> workKeyGenerator)
workKeyGenerator
- the work key generatorpublic ControllerWatchBuilder<ApiType> withResyncPeriod(Duration resyncPeriod)
public DefaultControllerWatch<ApiType> build() throws IllegalStateException
IllegalStateException
- the illegal state exceptionCopyright © 2021. All rights reserved.