Package io.fabric8.kubernetes.client.dsl
Interface Watchable<T>
-
- All Known Subinterfaces:
AnyNamespaceOperation<T,L,R>,CertificateSigningRequestResource<T>,ExtensibleResource<T>,FilterWatchListDeletable<T,L,R>,MixedOperation<T,L,R>,NamespaceableResource<T>,NonNamespaceOperation<T,L,R>,ParameterMixedOperation<T,L,R>,PodResource,Resource<T>,RollableScalableResource<T>,ScalableResource<T>,ServiceAccountResource,ServiceResource<T>,V1beta1CertificateSigningRequestResource<T>,WatchAndWaitable<T>
- All Known Implementing Classes:
ExtensibleResourceAdapter,ResourceAdapter
public interface Watchable<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Watchwatch(io.fabric8.kubernetes.api.model.ListOptions options, Watcher<T> watcher)Watch returnsWatchinterface that watches requested resourceWatchwatch(Watcher<T> watcher)Watch returnsWatchinterface that watches requested resourceWatchwatch(String resourceVersion, Watcher<T> watcher)Deprecated.Please usewatch(ListOptions, Watcher)instead, it has a parameter of resourceVersion
-
-
-
Method Detail
-
watch
Watch watch(Watcher<T> watcher)
Watch returnsWatchinterface that watches requested resource- Parameters:
watcher- Watcher interface of Kubernetes resource- Returns:
- watch interface
Watch
-
watch
Watch watch(io.fabric8.kubernetes.api.model.ListOptions options, Watcher<T> watcher)
Watch returnsWatchinterface that watches requested resourceThe passed in options may be modified as a side-effect of this call.
Values that already exist at this context, such as the labels, fields, and resourceVersion will be overridden on the passed in options regardless of initial values.- Parameters:
options- options available for watch operationwatcher- Watcher interface of Kubernetes resource- Returns:
- watch interface
Watch
-
watch
@Deprecated Watch watch(String resourceVersion, Watcher<T> watcher)
Deprecated.Please usewatch(ListOptions, Watcher)instead, it has a parameter of resourceVersionWatch returnsWatchinterface that watches requested resource from specified resourceVersion- Parameters:
resourceVersion- resource version from where to start watchwatcher- Watcher interface of Kubernetes resource- Returns:
- watch interface
Watch
-
-