com.hazelcast.queue.impl.tx
Class QueueTransactionLog
java.lang.Object
com.hazelcast.queue.impl.tx.QueueTransactionLog
- All Implemented Interfaces:
- DataSerializable, KeyAwareTransactionLog, TransactionLog
public class QueueTransactionLog
- extends Object
- implements KeyAwareTransactionLog
This class contains Transaction log for the Queue.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueueTransactionLog
public QueueTransactionLog()
QueueTransactionLog
public QueueTransactionLog(String transactionId,
long itemId,
String name,
int partitionId,
Operation op)
prepare
public Future prepare(NodeEngine nodeEngine)
- Specified by:
prepare
in interface TransactionLog
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
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.