public interface SharedInformer<ApiType>
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(ResourceEventHandler<ApiType> handler)
Add event handler.
|
void |
addEventHandlerWithResyncPeriod(ResourceEventHandler<ApiType> handler,
long resyncPeriod)
addEventHandlerWithResyncPeriod adds an event handler to the shared informer using the
specified resync period.
|
boolean |
hasSynced()
hasSynced returns true if the shared informer's store has synced.
|
java.lang.String |
lastSyncResourceVersion()
Last sync resource version string.
|
void |
run()
run starts the shared informer, which will be stopped until stop() is called.
|
void |
stop()
stop stops the shared informer.
|
void addEventHandler(ResourceEventHandler<ApiType> handler)
handler
- the handlervoid addEventHandlerWithResyncPeriod(ResourceEventHandler<ApiType> handler, long resyncPeriod)
handler
- the event handlerresyncPeriod
- the specific resync periodvoid run()
void stop()
boolean hasSynced()
java.lang.String lastSyncResourceVersion()
Copyright © 2019. All rights reserved.