@FunctionalInterface public static interface EventSourcingSpec.UndoFunction<A,K,C>
The return value of type A must satisfy the following property:
command tranforms the aggregate to, if one takes the result of the
decode it, and then apply it to this new aggregate value, it should result in the original aggregate value being restored.
Note that the undo command of an event sourcing action processor must have the same action type.
aggregateKey- the aggregate key
command- the Simple Sourcing command
Optional.empty()if no undo function is to be generated
Copyright © 2019. All rights reserved.