/** * Creates a plain transaction object which can be used while cluster state is {@link ClusterState#PASSIVE}, * without wrapping it inside a TransactionContext. * <p/> * Also see {@link TransactionManagerServiceImpl#newTransaction(TransactionOptions)} for more details * * @param options transaction options * @return a new transaction which can be used while cluster state is {@link ClusterState#PASSIVE} */ public Transaction newAllowedDuringPassiveStateTransaction(TransactionOptions options) { return new AllowedDuringPassiveStateTransactionImpl(this, nodeEngine, options, null); }
protected ReplicateTxBackupLogOperation createReplicateTxBackupLogOperation() { return new ReplicateAllowedDuringPassiveStateTxBackupLogOperation( getTransactionLog().getRecordList(), getOwnerUuid(), getTxnId(), getTimeoutMillis(), getStartTime()); }
protected CreateTxBackupLogOperation createCreateTxBackupLogOperation() { return new CreateAllowedDuringPassiveStateTxBackupLogOperation(getOwnerUuid(), getTxnId()); }
protected RollbackTxBackupLogOperation createRollbackTxBackupLogOperation() { return new RollbackAllowedDuringPassiveStateTxBackupLogOperation(getTxnId()); }
protected CreateTxBackupLogOperation createCreateTxBackupLogOperation() { return new CreateAllowedDuringPassiveStateTxBackupLogOperation(getOwnerUuid(), getTxnId()); }
protected RollbackTxBackupLogOperation createRollbackTxBackupLogOperation() { return new RollbackAllowedDuringPassiveStateTxBackupLogOperation(getTxnId()); }
protected ReplicateTxBackupLogOperation createReplicateTxBackupLogOperation() { return new ReplicateAllowedDuringPassiveStateTxBackupLogOperation( getTransactionLog().getRecordList(), getOwnerUuid(), getTxnId(), getTimeoutMillis(), getStartTime()); }
/** * Creates a plain transaction object which can be used while cluster state is {@link ClusterState#PASSIVE}, * without wrapping it inside a TransactionContext. * <p/> * Also see {@link TransactionManagerServiceImpl#newTransaction(TransactionOptions)} for more details * * @param options transaction options * @return a new transaction which can be used while cluster state is {@link ClusterState#PASSIVE} */ public Transaction newAllowedDuringPassiveStateTransaction(TransactionOptions options) { return new AllowedDuringPassiveStateTransactionImpl(this, nodeEngine, options, null); }
protected PurgeTxBackupLogOperation createPurgeTxBackupLogOperation() { return new PurgeAllowedDuringPassiveStateTxBackupLogOperation(getTxnId()); }
TransactionImpl tx; if (log.allowedDuringPassiveState) { tx = new AllowedDuringPassiveStateTransactionImpl(this, nodeEngine, txnId, log.records, log.timeoutMillis, log.startTime, log.callerUuid); } else {
protected PurgeTxBackupLogOperation createPurgeTxBackupLogOperation() { return new PurgeAllowedDuringPassiveStateTxBackupLogOperation(getTxnId()); }
TransactionImpl tx; if (log.allowedDuringPassiveState) { tx = new AllowedDuringPassiveStateTransactionImpl(this, nodeEngine, txnId, log.records, log.timeoutMillis, log.startTime, log.callerUuid); } else {