tx:client dtx rollback
@@ -93,12 +93,12 @@ public class TccStartingTransaction implements TXLCNTransactionControl {
@Override
public void onBusinessCodeError(TxTransactionInfo info, Throwable throwable) {
- DTXLocal.cur().setState(0);
+ DTXLocal.currentDTX().setTransactionState(0);
}
@Override
public void onBusinessCodeSuccess(TxTransactionInfo info, Object result) {
- DTXLocal.cur().setState(1);
+ DTXLocal.currentDTX().setTransactionState(1);
}
/**
@@ -109,6 +109,6 @@ public class TccStartingTransaction implements TXLCNTransactionControl {
@Override
public void postBusinessCode(TxTransactionInfo info) {
transactionControlTemplate.notifyGroup(
- info.getGroupId(), info.getUnitId(), info.getTransactionType(), DTXLocal.cur().getState());
+ info.getGroupId(), info.getUnitId(), info.getTransactionType(), DTXLocal.currentDTX().transactionState());
}
}
