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 String
getLastSyncResourceVersion()
CompletableFuture<Void>
getStartFuture()
CompletableFuture<Void>
getStopFuture()
boolean
isStopped()
boolean
isWatching()
CompletableFuture<Void>
listSyncAndWatch()
Starts the watch with a fresh store state.protected void
reconnect()
void
setExceptionHandler(ExceptionHandler handler)
void
setMinTimeout(long minTimeout)
CompletableFuture<Void>
start()
void
stop()
String
toString()
void
usingInitialState()
-
-
-
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(ExceptionHandler handler)
-
usingInitialState
public void usingInitialState()
-
-