Search in sources :

Example 6 with TransactionLogRecord

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

the class PutRemoteTransactionBackupOperation method writeInternal.

@Override
protected void writeInternal(ObjectDataOutput out) throws IOException {
    out.writeUTF(txnId);
    out.writeObject(xid);
    out.writeUTF(txOwnerUuid);
    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 7 with TransactionLogRecord

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

the class PutRemoteTransactionBackupOperation 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 8 with TransactionLogRecord

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

the class PutRemoteTransactionOperation method writeInternal.

@Override
protected void writeInternal(ObjectDataOutput out) throws IOException {
    out.writeUTF(txnId);
    out.writeObject(xid);
    out.writeUTF(txOwnerUuid);
    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)

Aggregations

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