public interface SharedInformer<T>
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(ResourceEventHandler<T> handler)
Add event handler
|
void |
addEventHandlerWithResyncPeriod(ResourceEventHandler<T> handle,
long resyncPeriod)
Adds an event handler to the shared informer using the specified resync period.
|
boolean |
hasSynced() |
String |
lastSyncResourceVersion()
The resource version observed when last synced with the underlying store.
|
void |
run()
Starts the shared informer, which will be stopped until stop() is called.
|
void |
stop()
Stops the shared informer.
|
void addEventHandler(ResourceEventHandler<T> handler)
handler
- event handlervoid addEventHandlerWithResyncPeriod(ResourceEventHandler<T> handle, long resyncPeriod)
handle
- the event handlerresyncPeriod
- the specific resync periodvoid run()
void stop()
boolean hasSynced()
String lastSyncResourceVersion()
Copyright © 2015–2022 Red Hat. All rights reserved.