TransactionContextImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngineImpl nodeEngine, TransactionOptions options, String ownerUuid, boolean originatedFromClient) { this.nodeEngine = nodeEngine; this.transaction = new TransactionImpl(transactionManagerService, nodeEngine, options, ownerUuid, originatedFromClient); }
TransactionContextImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngineImpl nodeEngine, TransactionOptions options, String ownerUuid, boolean originatedFromClient) { this.nodeEngine = nodeEngine; this.transaction = new TransactionImpl(transactionManagerService, nodeEngine, options, ownerUuid, originatedFromClient); }
/** * Creates a plain transaction object, without wrapping it * inside a TransactionContext. * <p/> * A Transaction is a lower level API than TransactionContext. * It's not possible to create/access transactional * data structures without TransactionContext. * <p/> * A Transaction object * only allows starting/committing/rolling back transaction, * accessing state of the transaction * and adding TransactionLogRecord to the transaction. * * @param options transaction options * @return a new transaction */ public Transaction newTransaction(TransactionOptions options) { return new TransactionImpl(this, nodeEngine, options, null); }
/** * Creates a plain transaction object, without wrapping it * inside a TransactionContext. * <p/> * A Transaction is a lower level API than TransactionContext. * It's not possible to create/access transactional * data structures without TransactionContext. * <p/> * A Transaction object * only allows starting/committing/rolling back transaction, * accessing state of the transaction * and adding TransactionLogRecord to the transaction. * * @param options transaction options * @return a new transaction */ public Transaction newTransaction(TransactionOptions options) { return new TransactionImpl(this, nodeEngine, options, null); }
log.timeoutMillis, log.startTime, log.callerUuid); } else { tx = new TransactionImpl(this, nodeEngine, txnId, log.records, log.timeoutMillis, log.startTime, log.callerUuid);
log.timeoutMillis, log.startTime, log.callerUuid); } else { tx = new TransactionImpl(this, nodeEngine, txnId, log.records, log.timeoutMillis, log.startTime, log.callerUuid);