When a transaction is in the `OPEN` state, messages can be produced and acked with this transaction.
When a transaction is in the `OPEN` state, it can commit or abort.
When a client invokes a commit or an abort, but a transaction does not exist in a coordinator,
then the state is changed to `ERROR`.
When a client invokes a commit, but the transaction state in a coordinator is `ABORTED` or `ABORTING`,
then the state is changed to `ERROR`.
When a client invokes an abort, but the transaction state in a coordinator is `COMMITTED` or `COMMITTING`,
then the state is changed to `ERROR`.
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.