Indicator of an optimistic locking strategy. Concurrent access is not prevented. Instead, when concurrent
modifications are detected, an exception is thrown.
Important note: in a highly concurrent environment (i.e. multiple threads acting on the same
aggregate simultaneously), the optimistic locking strategy cannot guarantee that events are dispatched in the
exact same order as they are generated. Whether this occurs or not depends highly on the CPU architecture and the
scheduling of threads. For full ordering guarantee, regardless hardware architecture, use the pessimistic locking
Indicator of a pessimistic locking strategy. This strategy will block any thread that tries to load an aggregate
that has already been loaded by another thread. Once the other thread saves the aggregate, the lock is released,
giving waiting threads the opportunity to obtain it and load the aggregate.
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
name - the name of the enum constant to be returned.