Class TransactionUtil
java.lang.Object
org.apache.pulsar.transaction.coordinator.util.TransactionUtil
An transaction util of
TransactionUtil.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanTransitionTo(TxnStatus currentStatus, TxnStatus newStatus) Check if the a status can be transaction to a new status.
-
Constructor Details
-
TransactionUtil
public TransactionUtil()
-
-
Method Details
-
canTransitionTo
Check if the a status can be transaction to a new status.- Parameters:
newStatus- the new status- Returns:
- true if the current status can be transitioning to.
-