TransactionImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngine nodeEngine, String txnId, List<TransactionLogRecord> transactionLog, long timeoutMillis, long startTime, String txOwnerUuid) { this.transactionLog = new TransactionLog(transactionLog); this.transactionManagerService = transactionManagerService; this.nodeEngine = nodeEngine; this.txnId = txnId; this.timeoutMillis = timeoutMillis; this.startTime = startTime; this.durability = 0; this.transactionType = TWO_PHASE; this.state = PREPARED; this.txOwnerUuid = txOwnerUuid; this.checkThreadAccess = false; this.logger = nodeEngine.getLogger(getClass()); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.FINEST); this.rollbackTxExceptionHandler = logAllExceptions(logger, "Error during tx rollback backup!", Level.FINEST); this.replicationTxExceptionHandler = createReplicationTxExceptionHandler(logger); }
TransactionImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngine nodeEngine, String txnId, List<TransactionLogRecord> transactionLog, long timeoutMillis, long startTime, String txOwnerUuid) { this.transactionLog = new TransactionLog(transactionLog); this.transactionManagerService = transactionManagerService; this.nodeEngine = nodeEngine; this.txnId = txnId; this.timeoutMillis = timeoutMillis; this.startTime = startTime; this.durability = 0; this.transactionType = TWO_PHASE; this.state = PREPARED; this.txOwnerUuid = txOwnerUuid; this.checkThreadAccess = false; this.logger = nodeEngine.getLogger(getClass()); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.FINEST); this.rollbackTxExceptionHandler = logAllExceptions(logger, "Error during tx rollback backup!", Level.FINEST); this.replicationTxExceptionHandler = createReplicationTxExceptionHandler(logger); }
public TransactionImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngine nodeEngine, TransactionOptions options, String txOwnerUuid, boolean originatedFromClient) { this.transactionLog = new TransactionLog(); this.transactionManagerService = transactionManagerService; this.nodeEngine = nodeEngine; this.txnId = newUnsecureUuidString(); this.timeoutMillis = options.getTimeoutMillis(); this.transactionType = options.getTransactionType() == LOCAL ? ONE_PHASE : options.getTransactionType(); this.durability = transactionType == ONE_PHASE ? 0 : options.getDurability(); this.txOwnerUuid = txOwnerUuid == null ? nodeEngine.getLocalMember().getUuid() : txOwnerUuid; this.checkThreadAccess = txOwnerUuid == null; this.logger = nodeEngine.getLogger(getClass()); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.FINEST); this.rollbackTxExceptionHandler = logAllExceptions(logger, "Error during tx rollback backup!", Level.FINEST); this.replicationTxExceptionHandler = createReplicationTxExceptionHandler(logger); this.originatedFromClient = originatedFromClient; }
public TransactionImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngine nodeEngine, TransactionOptions options, String txOwnerUuid, boolean originatedFromClient) { this.transactionLog = new TransactionLog(); this.transactionManagerService = transactionManagerService; this.nodeEngine = nodeEngine; this.txnId = newUnsecureUuidString(); this.timeoutMillis = options.getTimeoutMillis(); this.transactionType = options.getTransactionType() == LOCAL ? ONE_PHASE : options.getTransactionType(); this.durability = transactionType == ONE_PHASE ? 0 : options.getDurability(); this.txOwnerUuid = txOwnerUuid == null ? nodeEngine.getLocalMember().getUuid() : txOwnerUuid; this.checkThreadAccess = txOwnerUuid == null; this.logger = nodeEngine.getLogger(getClass()); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.FINEST); this.rollbackTxExceptionHandler = logAllExceptions(logger, "Error during tx rollback backup!", Level.FINEST); this.replicationTxExceptionHandler = createReplicationTxExceptionHandler(logger); this.originatedFromClient = originatedFromClient; }