com.hazelcast.collection.impl.txncollection
public class CollectionTransactionLog extends Object implements KeyAwareTransactionLog
Constructor and Description |
---|
CollectionTransactionLog() |
CollectionTransactionLog(long itemId,
String name,
int partitionId,
String serviceName,
String transactionId,
Operation op) |
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 Object getKey()
getKey
in interface KeyAwareTransactionLog
public Future prepare(NodeEngine nodeEngine)
prepare
in interface TransactionLog
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
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.