Search in sources :

Example 1 with TransactionLogRecord

use of com.hazelcast.transaction.impl.TransactionLogRecord in project hazelcast by hazelcast.

the class XATransactionDTO method writeData.

@Override
public void writeData(ObjectDataOutput out) throws IOException {
    out.writeUTF(txnId);
    out.writeObject(xid);
    out.writeUTF(ownerUuid);
    out.writeLong(timeoutMilis);
    out.writeLong(startTime);
    int len = records.size();
    out.writeInt(len);
    if (len > 0) {
        for (TransactionLogRecord record : records) {
            out.writeObject(record);
        }
    }
}
Also used : TransactionLogRecord(com.hazelcast.transaction.impl.TransactionLogRecord)

Example 2 with TransactionLogRecord

use of com.hazelcast.transaction.impl.TransactionLogRecord in project hazelcast by hazelcast.

the class ReplicateTxBackupLogOperation method readInternal.

@Override
protected void readInternal(ObjectDataInput in) throws IOException {
    callerUuid = in.readUTF();
    txnId = in.readUTF();
    timeoutMillis = in.readLong();
    startTime = in.readLong();
    int len = in.readInt();
    if (len > 0) {
        for (int i = 0; i < len; i++) {
            TransactionLogRecord record = in.readObject();
            records.add(record);
        }
    }
}
Also used : TransactionLogRecord(com.hazelcast.transaction.impl.TransactionLogRecord)

Example 3 with TransactionLogRecord

use of com.hazelcast.transaction.impl.TransactionLogRecord in project hazelcast by hazelcast.

the class PutRemoteTransactionOperation method readInternal.

@Override
protected void readInternal(ObjectDataInput in) throws IOException {
    txnId = in.readUTF();
    xid = in.readObject();
    txOwnerUuid = in.readUTF();
    timeoutMillis = in.readLong();
    startTime = in.readLong();
    int len = in.readInt();
    if (len > 0) {
        for (int i = 0; i < len; i++) {
            TransactionLogRecord record = in.readObject();
            records.add(record);
        }
    }
}
Also used : TransactionLogRecord(com.hazelcast.transaction.impl.TransactionLogRecord)

Example 4 with TransactionLogRecord

use of com.hazelcast.transaction.impl.TransactionLogRecord in project hazelcast by hazelcast.

the class ReplicateTxBackupLogOperation method writeInternal.

@Override
protected void writeInternal(ObjectDataOutput out) throws IOException {
    out.writeUTF(callerUuid);
    out.writeUTF(txnId);
    out.writeLong(timeoutMillis);
    out.writeLong(startTime);
    int len = records.size();
    out.writeInt(len);
    if (len > 0) {
        for (TransactionLogRecord record : records) {
            out.writeObject(record);
        }
    }
}
Also used : TransactionLogRecord(com.hazelcast.transaction.impl.TransactionLogRecord)

Example 5 with TransactionLogRecord

use of com.hazelcast.transaction.impl.TransactionLogRecord in project hazelcast by hazelcast.

the class XATransactionDTO method readData.

@Override
public void readData(ObjectDataInput in) throws IOException {
    txnId = in.readUTF();
    xid = in.readObject();
    ownerUuid = in.readUTF();
    timeoutMilis = in.readLong();
    startTime = in.readLong();
    int size = in.readInt();
    records = new ArrayList<TransactionLogRecord>(size);
    for (int i = 0; i < size; i++) {
        TransactionLogRecord record = in.readObject();
        records.add(record);
    }
}
Also used : TransactionLogRecord(com.hazelcast.transaction.impl.TransactionLogRecord)

Aggregations

TransactionLogRecord (com.hazelcast.transaction.impl.TransactionLogRecord)8