com.hazelcast.queue.impl
Class TxQueueItem
java.lang.Object
com.hazelcast.queue.impl.QueueItem
com.hazelcast.queue.impl.TxQueueItem
- All Implemented Interfaces:
- DataSerializable, IdentifiedDataSerializable, Comparable<QueueItem>
public class TxQueueItem
- extends QueueItem
Transactional Queue Item.
TxQueueItem
public TxQueueItem()
TxQueueItem
public TxQueueItem(QueueItem item)
TxQueueItem
public TxQueueItem(QueueContainer container,
long itemId,
Data data)
getTransactionId
public String getTransactionId()
setTransactionId
public TxQueueItem setTransactionId(String transactionId)
isPollOperation
public boolean isPollOperation()
setPollOperation
public TxQueueItem setPollOperation(boolean pollOperation)
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
- Overrides:
writeData
in class QueueItem
- 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
- Overrides:
readData
in class QueueItem
- Parameters:
in
- input
- Throws:
IOException
getId
public int getId()
- Description copied from interface:
IdentifiedDataSerializable
- Returns type identifier for this class. Id should be unique per DataSerializableFactory.
- Specified by:
getId
in interface IdentifiedDataSerializable
- Overrides:
getId
in class QueueItem
- Returns:
- type id
equals
public boolean equals(Object o)
- Overrides:
equals
in class QueueItem
hashCode
public int hashCode()
- Overrides:
hashCode
in class QueueItem
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.