com.hazelcast.map.impl.tx
public class MapTransactionLog extends Object implements KeyAwareTransactionLog
Constructor and Description |
---|
MapTransactionLog() |
MapTransactionLog(String name,
Data key,
Operation op,
long version,
String ownerUuid) |
Modifier and Type | Method and Description |
---|---|
Future |
commit(NodeEngine nodeEngine) |
void |
commitAsync(NodeEngine nodeEngine,
ExecutionCallback callback) |
Object |
getKey() |
Future |
prepare(NodeEngine nodeEngine) |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
Future |
rollback(NodeEngine nodeEngine) |
void |
rollbackAsync(NodeEngine nodeEngine,
ExecutionCallback callback) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public Future prepare(NodeEngine nodeEngine) throws TransactionException
prepare
in interface TransactionLog
TransactionException
public Future commit(NodeEngine nodeEngine)
commit
in interface TransactionLog
public void commitAsync(NodeEngine nodeEngine, ExecutionCallback callback)
commitAsync
in interface TransactionLog
public Future rollback(NodeEngine nodeEngine)
rollback
in interface TransactionLog
public void rollbackAsync(NodeEngine nodeEngine, ExecutionCallback callback)
rollbackAsync
in interface TransactionLog
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
public Object getKey()
getKey
in interface KeyAwareTransactionLog
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.