Interface ExternalStoreListener<K,V>
- Type Parameters:
K- Key type for entries in the external storeV- Value type for entries in the external store
public interface ExternalStoreListener<K,V>
Listener for entries from an external store, for example an LDAP server.
This is implemented by the auth metadata writer. The master writer processes
entries from the external store using this listener interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when a refresh of the external store indicates that an entry was deleted.voidIndicates that the connection to the external store has failed.voidinitialize(Map<K, V> initialValues) Invoked when existing entries from the external store are processed.voidIndicates that external store is functioning after an earlier failure.voidstart()voidstop()voidInvoked when a refresh of the external store finds a new entry or an updated entry.
-
Method Details
-
initialize
Invoked when existing entries from the external store are processed.- Parameters:
initialValues- Initial values from the store
-
update
Invoked when a refresh of the external store finds a new entry or an updated entry.- Parameters:
key- Key to updatevalue- New value
-
delete
Invoked when a refresh of the external store indicates that an entry was deleted.- Parameters:
key- Key of deleted entry
-
fail
Indicates that the connection to the external store has failed. This is invoked when the configured retry timeout for the store has been reached.- Parameters:
errorMessage- Error message that will be added to the auth topic
-
resetFailure
void resetFailure()Indicates that external store is functioning after an earlier failure. -
start
void start() -
stop
void stop()
-