public class ClusterStateTransactionLogRecord extends Object implements TargetAwareTransactionLogRecord
ClusterState
transactions.Constructor and Description |
---|
ClusterStateTransactionLogRecord() |
ClusterStateTransactionLogRecord(ClusterState newState,
Address initiator,
Address target,
String txnId,
long leaseTime,
int partitionStateVersion) |
Modifier and Type | Method and Description |
---|---|
Object |
getKey()
Gets the transaction-log-key that uniquely identifies the
TransactionLogRecord within the TransactionLog . |
Address |
getTarget()
Returns target of changes made by this transaction record.
|
Operation |
newCommitOperation() |
Operation |
newPrepareOperation() |
Operation |
newRollbackOperation() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public ClusterStateTransactionLogRecord()
public ClusterStateTransactionLogRecord(ClusterState newState, Address initiator, Address target, String txnId, long leaseTime, int partitionStateVersion)
public Object getKey()
TransactionLogRecord
TransactionLogRecord
within the TransactionLog
.
E.g. for a map that would be the map-name and the key. So if a map transactional put is done on some
key, and if later on another put on that key is done, by using the same transaction-log-key, the first
put is overwritten.
If null is returned, this TransactionLogRecord can't be identified and can't be overwritten by a later change.getKey
in interface TransactionLogRecord
public Operation newPrepareOperation()
newPrepareOperation
in interface TransactionLogRecord
public Operation newCommitOperation()
newCommitOperation
in interface TransactionLogRecord
public Operation newRollbackOperation()
newRollbackOperation
in interface TransactionLogRecord
public Address getTarget()
TargetAwareTransactionLogRecord
getTarget
in interface TargetAwareTransactionLogRecord
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.