public final class ChangeKey extends UpdateActionImpl<State>
See also StateUpdateCommand.
withUpdateableState(client(), state -> { final String newKey = randomKey(); final StateUpdateCommand command = StateUpdateCommand.of(state, ChangeKey.of(newKey)); final State updatedState = client().executeBlocking(command); assertThat(updatedState.getKey()).isEqualTo(newKey); return updatedState; });
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
static ChangeKey |
of(String key) |
getAction