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