@Override public void run() throws Exception { XAService xaService = getService(); NodeEngine nodeEngine = getNodeEngine(); XATransaction transaction = new XATransaction(nodeEngine, records, txnId, xid, txOwnerUuid, timeoutMillis, startTime); xaService.putTransaction(transaction); }
private void putTransactionInfoRemote() throws ExecutionException, InterruptedException { PutRemoteTransactionOperation operation = new PutRemoteTransactionOperation( transactionLog.getRecordList(), txnId, xid, txOwnerUuid, timeoutMillis, startTime); OperationService operationService = nodeEngine.getOperationService(); IPartitionService partitionService = nodeEngine.getPartitionService(); int partitionId = partitionService.getPartitionId(xid); InternalCompletableFuture<Object> future = operationService.invokeOnPartition(SERVICE_NAME, operation, partitionId); future.get(); }
private void putTransactionInfoRemote() throws ExecutionException, InterruptedException { PutRemoteTransactionOperation operation = new PutRemoteTransactionOperation( transactionLog.getRecordList(), txnId, xid, txOwnerUuid, timeoutMillis, startTime); OperationService operationService = nodeEngine.getOperationService(); IPartitionService partitionService = nodeEngine.getPartitionService(); int partitionId = partitionService.getPartitionId(xid); InternalCompletableFuture<Object> future = operationService.invokeOnPartition(SERVICE_NAME, operation, partitionId); future.get(); }
@Override public void run() throws Exception { XAService xaService = getService(); NodeEngine nodeEngine = getNodeEngine(); XATransaction transaction = new XATransaction(nodeEngine, records, txnId, xid, txOwnerUuid, timeoutMillis, startTime); xaService.putTransaction(transaction); }
return new PutRemoteTransactionBackupOperation(); case PUT_REMOTE_TX: return new PutRemoteTransactionOperation(); case XA_REPLICATION: return new XaReplicationOperation();
return new PutRemoteTransactionBackupOperation(); case PUT_REMOTE_TX: return new PutRemoteTransactionOperation(); case XA_REPLICATION: return new XaReplicationOperation();