use of com.hazelcast.transaction.impl.xa.XATransactionDTO in project hazelcast by hazelcast.
the class XaReplicationOperation method run.
@Override
public void run() throws Exception {
XAService xaService = getService();
NodeEngine nodeEngine = getNodeEngine();
for (XATransactionDTO transactionDTO : migrationData) {
XATransaction transaction = new XATransaction(nodeEngine, transactionDTO.getRecords(), transactionDTO.getTxnId(), transactionDTO.getXid(), transactionDTO.getOwnerUuid(), transactionDTO.getTimeoutMilis(), transactionDTO.getStartTime());
xaService.putTransaction(transaction);
}
}
use of com.hazelcast.transaction.impl.xa.XATransactionDTO in project hazelcast by hazelcast.
the class XaReplicationOperation method readInternal.
@Override
protected void readInternal(ObjectDataInput in) throws IOException {
int size = in.readInt();
migrationData = new ArrayList<XATransactionDTO>(size);
for (int i = 0; i < size; i++) {
XATransactionDTO transactionDTO = in.readObject();
migrationData.add(transactionDTO);
}
}
Aggregations