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,
Store<T> store,
ListerWatcher<T,L> listerWatcher,
Supplier<Boolean> resyncFunc,
long fullResyncPeriod,
OperationContext context,
ConcurrentLinkedQueue<SharedInformerEventListener> eventListeners) |
Modifier and Type | Method and Description |
---|---|
long |
getFullResyncPeriod() |
boolean |
hasSynced()
Returns true if the queue has been resynced
|
boolean |
isRunning() |
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, Store<T> store, ListerWatcher<T,L> listerWatcher, Supplier<Boolean> resyncFunc, long fullResyncPeriod, OperationContext context, ConcurrentLinkedQueue<SharedInformerEventListener> eventListeners)
public void run()
public void stop()
public boolean hasSynced()
public String lastSyncResourceVersion()
public boolean isRunning()
public long getFullResyncPeriod()
Copyright © 2015–2022 Red Hat. All rights reserved.