Interface DistributedMetaStorageListener<T extends Serializable>

    • 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 oldVal and newVal might 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.