com.hazelcast.map.impl.tx
Class MapTransactionLog
java.lang.Object
com.hazelcast.map.impl.tx.MapTransactionLog
- All Implemented Interfaces:
- DataSerializable, KeyAwareTransactionLog, TransactionLog
public class MapTransactionLog
- extends Object
- implements KeyAwareTransactionLog
Represents an operation on the map in the transaction log.
MapTransactionLog
public MapTransactionLog()
MapTransactionLog
public MapTransactionLog(String name,
Data key,
Operation op,
long version,
String ownerUuid)
prepare
public Future prepare(NodeEngine nodeEngine)
throws TransactionException
- Specified by:
prepare
in interface TransactionLog
- Throws:
TransactionException
commit
public Future commit(NodeEngine nodeEngine)
- Specified by:
commit
in interface TransactionLog
rollback
public Future rollback(NodeEngine nodeEngine)
- Specified by:
rollback
in interface TransactionLog
writeData
public void writeData(ObjectDataOutput out)
throws IOException
- Description copied from interface:
DataSerializable
- Writes object fields to output stream
- Specified by:
writeData
in interface DataSerializable
- Parameters:
out
- output
- Throws:
IOException
readData
public void readData(ObjectDataInput in)
throws IOException
- Description copied from interface:
DataSerializable
- Reads fields from the input stream
- Specified by:
readData
in interface DataSerializable
- Parameters:
in
- input
- Throws:
IOException
getKey
public Object getKey()
- Specified by:
getKey
in interface KeyAwareTransactionLog
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.