@FunctionalInterface
public static interface RaftBackedCache.ChangeListener<V>
| Modifier and Type | Method and Description |
|---|---|
void |
onChange(java.lang.String changedKey,
java.util.Optional<V> newValue)
Run on a value of the state machine changing.
|
void onChange(java.lang.String changedKey,
java.util.Optional<V> newValue)
changedKey - The key that changed.newValue - The new value of the changed key, or Optional.empty() if we are removing a key.