use of io.seata.core.protocol.transaction.GlobalRollbackResponse in project seata by seata.
the class DefaultTransactionManager method rollback.
@Override
public GlobalStatus rollback(String xid) throws TransactionException {
GlobalRollbackRequest globalRollback = new GlobalRollbackRequest();
globalRollback.setXid(xid);
GlobalRollbackResponse response = (GlobalRollbackResponse) syncCall(globalRollback);
return response.getGlobalStatus();
}
Aggregations