K - Key type for entries in the external storeV - Value type for entries in the external storepublic interface ExternalStoreListener<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
delete(K key)
Invoked when a refresh of the external store indicates that an entry
was deleted.
|
void |
fail(String errorMessage)
Indicates that the connection to the external store has failed.
|
void |
initialize(Map<K,V> initialValues)
Invoked when existing entries from the external store are processed.
|
void |
resetFailure()
Indicates that external store is functioning after an earlier failure.
|
void |
start() |
void |
stop() |
void |
update(K key,
V value)
Invoked when a refresh of the external store finds a new entry or an
updated entry.
|
void initialize(Map<K,V> initialValues)
initialValues - Initial values from the storevoid update(K key, V value)
key - Key to updatevalue - New valuevoid delete(K key)
key - Key of deleted entryvoid fail(String errorMessage)
errorMessage - Error message that will be added to the auth topicvoid resetFailure()
void start()
void stop()