@Override protected void handleImpl(HttpServerExchange exchange, ImportResult<LocalTransaction> transaction) throws Exception { transaction.getControl().rollback(); } }
@Override protected void handleImpl(HttpServerExchange exchange, ImportResult<LocalTransaction> transaction) throws Exception { transaction.getControl().prepare(); } }
@Override protected void handleImpl(HttpServerExchange exchange, ImportResult<LocalTransaction> transaction) throws Exception { transaction.getControl().beforeCompletion(); } }
@Override protected void handleImpl(HttpServerExchange exchange, ImportResult<LocalTransaction> transaction) throws Exception { transaction.getControl().forget(); } }
@Override protected void handleImpl(HttpServerExchange exchange, ImportResult<LocalTransaction> transaction) throws Exception { Deque<String> opc = exchange.getQueryParameters().get("opc"); boolean onePhase = false; if (opc != null && !opc.isEmpty()) { onePhase = Boolean.parseBoolean(opc.poll()); } transaction.getControl().commit(onePhase); } }
public void forget(final Xid xid) throws XAException { getImportedTransaction(xid).getControl().forget(); }
public int prepare(final Xid xid) throws XAException { return getImportedTransaction(xid).getControl().prepare(); }
public void rollback(final Xid xid) throws XAException { getImportedTransaction(xid).getControl().rollback(); }
public void commit(final Xid xid, final boolean onePhase) throws XAException { getImportedTransaction(xid).getControl().commit(onePhase); }
importResult.getControl().commit(onePhaseCopy); writeSimpleResponse(M_RESP_XA_COMMIT, invId); } catch (XAException e) {
return; importResult.getControl().end(XAResource.TMFAIL); writeSimpleResponse(M_RESP_XA_RB_ONLY, i); } catch (XAException e) {
importResult.getControl().forget(); writeSimpleResponse(M_RESP_XA_FORGET, i); } catch (XAException e) {
importResult.getTransaction().performConsumer(SubordinateTransactionControl::beforeCompletion, importResult.getControl()); writeSimpleResponse(M_RESP_XA_BEFORE, i); } catch (SystemException e) {
importResult.getTransaction().performConsumer(SubordinateTransactionControl::rollback, importResult.getControl()); writeSimpleResponse(M_RESP_XA_ROLLBACK, i); } catch (SystemException e) {
int result = ! importResult.getTransaction().isImported() ? XAResource.XA_RDONLY : importResult.getControl().prepare(); if (result == XAResource.XA_RDONLY) { writeSimpleResponse(M_RESP_XA_PREPARE, i, P_XA_RDONLY);
final TransactionID transactionID = TransactionID.createTransactionID(bytes); if (transactionID instanceof XidTransactionID) try { final SubordinateTransactionControl control = transactionServer.getTransactionService().getTransactionContext().findOrImportTransaction(((XidTransactionID) transactionID).getXid(), 0).getControl(); switch (code) { case Protocol.TXN_COMMIT_REQUEST: {
@Override protected void handleImpl(HttpServerExchange exchange, ImportResult<LocalTransaction> transaction) throws Exception { transaction.getControl().forget(); } }
@Override protected void handleImpl(HttpServerExchange exchange, ImportResult<LocalTransaction> transaction) throws Exception { transaction.getControl().rollback(); } }
@Override protected void handleImpl(HttpServerExchange exchange, ImportResult<LocalTransaction> transaction) throws Exception { transaction.getControl().prepare(); } }
@Override protected void handleImpl(HttpServerExchange exchange, ImportResult<LocalTransaction> transaction) throws Exception { Deque<String> opc = exchange.getQueryParameters().get("opc"); boolean onePhase = false; if (opc != null && !opc.isEmpty()) { onePhase = Boolean.parseBoolean(opc.poll()); } transaction.getControl().commit(onePhase); } }