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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
Aggregations