Interface DistributedMetaStorageListener<T extends Serializable>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DistributedMetaStorageListener<T extends Serializable>
Listener for distributed metastorage data updates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonUpdate(@NotNull String key, T oldVal, T newVal)Invoked in two cases: data was dynamicaly updated; node was started.
-
-
-
Method Detail
-
onUpdate
void onUpdate(@NotNull @NotNull String key, @Nullable T oldVal, @Nullable T newVal)Invoked in two cases:- data was dynamicaly updated;
- node was started. In this case
oldValandnewValmight be different only if new data was received from cluster
- Parameters:
key- The key.oldVal- Previous value associated with the key.newVal- New value after update.
-
-