public enum TransactionStatus extends Enum<TransactionStatus>
Enum Constant and Description |
---|
CommitTransaction
提交事务,对应的事务消息将投递给消费者
|
RollbackTransaction
回滚事务,对应的事务消息会被删除,不会投递给消费者
|
Unknow
未知状态,一般在用户无法确定事务是成功还是失败时使用,对于未知状态的事务,服务端会定期进行事务回查
|
Modifier and Type | Method and Description |
---|---|
static TransactionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionStatus CommitTransaction
public static final TransactionStatus RollbackTransaction
public static final TransactionStatus Unknow
public static TransactionStatus[] values()
for (TransactionStatus c : TransactionStatus.values()) System.out.println(c);
public static TransactionStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2020. All rights reserved.