submit method
Implementation
CommandApplyStatus submit(CommandSubmit submit) {
if (_entries.containsKey(submit.commandId)) {
return const CommandApplyDuplicate();
}
if (_generation < submit.authorityGeneration) {
_generation = submit.authorityGeneration;
}
_entries[submit.commandId] = CommandProjectionEntry(
commandId: submit.commandId,
status: CommandStatus.submitted,
terminal: false,
generation: submit.authorityGeneration,
);
return const CommandApplyRecorded();
}