Class Reflector<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
- java.lang.Object
-
- io.fabric8.kubernetes.client.informers.impl.cache.Reflector<T,L>
-
public class Reflector<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> extends Object
-
-
Constructor Summary
Constructors Constructor Description Reflector(ListerWatcher<T,L> listerWatcher, ProcessorStore<T> store)Reflector(ListerWatcher<T,L> listerWatcher, ProcessorStore<T> store, Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLastSyncResourceVersion()CompletableFuture<Void>getStartFuture()CompletableFuture<Void>getStopFuture()booleanisStopped()booleanisWatching()CompletableFuture<Void>listSyncAndWatch()
Starts the watch with a fresh store state.protected voidreconnect()voidsetExceptionHandler(io.fabric8.kubernetes.client.informers.ExceptionHandler handler)voidsetMinTimeout(long minTimeout)voidsetWatchList(boolean watchList)CompletableFuture<Void>start()voidstop()StringtoString()voidusingInitialState()
-
-
-
Constructor Detail
-
Reflector
public Reflector(ListerWatcher<T,L> listerWatcher, ProcessorStore<T> store)
-
Reflector
public Reflector(ListerWatcher<T,L> listerWatcher, ProcessorStore<T> store, Executor executor)
-
-
Method Detail
-
start
public CompletableFuture<Void> start()
-
getStartFuture
public CompletableFuture<Void> getStartFuture()
-
stop
public void stop()
-
listSyncAndWatch
public CompletableFuture<Void> listSyncAndWatch()
Starts the watch with a fresh store state.
Should be called only at start and when HttpGone is seen.- Returns:
- a future that completes when the list and watch are established
-
reconnect
protected void reconnect()
-
setMinTimeout
public void setMinTimeout(long minTimeout)
-
getLastSyncResourceVersion
public String getLastSyncResourceVersion()
-
isStopped
public boolean isStopped()
-
isWatching
public boolean isWatching()
-
getStopFuture
public CompletableFuture<Void> getStopFuture()
-
setExceptionHandler
public void setExceptionHandler(io.fabric8.kubernetes.client.informers.ExceptionHandler handler)
-
usingInitialState
public void usingInitialState()
-
setWatchList
public void setWatchList(boolean watchList)
-
-