public class Controller<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> extends Object
Constructor and Description |
---|
Controller(Class<T> apiTypeClass,
DeltaFIFO<T> queue,
ListerWatcher<T,L> listerWatcher,
Consumer<Deque<AbstractMap.SimpleEntry<DeltaFIFO.DeltaType,Object>>> processFunc,
Supplier<Boolean> resyncFunc,
long fullResyncPeriod,
OperationContext context,
ConcurrentLinkedQueue<SharedInformerEventListener> eventListeners) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasSynced()
Returns true if the queue has been resynced
|
String |
lastSyncResourceVersion()
Returns the latest resource version watched by controller.
|
void |
run() |
void |
stop()
Stops the resync thread pool first, then stops the reflector.
|
public Controller(Class<T> apiTypeClass, DeltaFIFO<T> queue, ListerWatcher<T,L> listerWatcher, Consumer<Deque<AbstractMap.SimpleEntry<DeltaFIFO.DeltaType,Object>>> processFunc, Supplier<Boolean> resyncFunc, long fullResyncPeriod, OperationContext context, ConcurrentLinkedQueue<SharedInformerEventListener> eventListeners)
public void run()
public void stop()
public boolean hasSynced()
public String lastSyncResourceVersion()
Copyright © 2015–2020 Red Hat. All rights reserved.