Examples of Tx


Examples of org.apache.activemq.store.journal.QuickJournalTransactionStore.Tx

                        case JournalTransaction.XA_PREPARE:
                            transactionStore.replayPrepare(command.getTransactionId());
                            break;
                        case JournalTransaction.XA_COMMIT:
                        case JournalTransaction.LOCAL_COMMIT:
                            Tx tx = transactionStore.replayCommit(command.getTransactionId(), command.getWasPrepared());
                            if (tx == null)
                                break; // We may be trying to replay a commit that
                                        // was already committed.

                            // Replay the committed operations.
                            for (Iterator iter = tx.getOperations().iterator(); iter.hasNext();) {
                                TxOperation op = (TxOperation) iter.next();
                                if (op.operationType == TxOperation.ADD_OPERATION_TYPE) {
                                    op.store.replayAddMessage(context, (Message) op.data, op.location);
                                }
                                if (op.operationType == TxOperation.REMOVE_OPERATION_TYPE) {
View Full Code Here

Examples of org.apache.activemq.store.rapid.RapidTransactionStore.Tx

                        case JournalTransaction.XA_PREPARE:
                            transactionStore.replayPrepare(command.getTransactionId());
                            break;
                        case JournalTransaction.XA_COMMIT:
                        case JournalTransaction.LOCAL_COMMIT:
                            Tx tx = transactionStore.replayCommit(command.getTransactionId(), command.getWasPrepared());
                            if (tx == null)
                                break; // We may be trying to replay a commit that
                                        // was already committed.

                            // Replay the committed operations.
                            for (Iterator iter = tx.getOperations().iterator(); iter.hasNext();) {
                                TxOperation op = (TxOperation) iter.next();
                                if (op.operationType == TxOperation.ADD_OPERATION_TYPE) {
                                    op.store.replayAddMessage(context, (Message) op.data, op.location);
                                }
                                if (op.operationType == TxOperation.REMOVE_OPERATION_TYPE) {
View Full Code Here

Examples of org.objectweb.speedo.jmx.mbeans.Tx

   
    public void addTxMBeans() throws Exception {
        DependencyGraph dg = (DependencyGraph) FractalHelper.getSubComponent(
                speedo, AbstractSpeedo.DEPENDENCY_GRAPH_PATH, logger)
                  .getFcInterface("dependency-graph");
        Tx p = new Tx(getPMF(), dg);
        server.registerMBean(p, new ObjectName("speedo:name=tx"));
    }
View Full Code Here

Examples of org.structr.core.graph.Tx

    return tx(doValidation, true);
  }

  @Override
  public Tx tx(final boolean doValidation, final boolean doCallbacks) {
    return new Tx(securityContext, this, doValidation, doCallbacks).begin();
  }
View Full Code Here

Examples of org.structr.core.graph.Tx

    return new Tx(securityContext, this, doValidation, doCallbacks).begin();
  }

  @Override
  public Tx tx(final boolean doValidation, final boolean doCallbacks, final boolean doNotifications) {
    return new Tx(securityContext, this, doValidation, doCallbacks, doNotifications).begin();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.