com.hazelcast.queue.impl
Class TxQueueItem

java.lang.Object
  extended by com.hazelcast.queue.impl.QueueItem
      extended by com.hazelcast.queue.impl.TxQueueItem
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, Comparable<QueueItem>

public class TxQueueItem
extends QueueItem

Transactional Queue Item.


Field Summary
 
Fields inherited from class com.hazelcast.queue.impl.QueueItem
container, creationTime, data, itemId
 
Constructor Summary
TxQueueItem()
           
TxQueueItem(QueueContainer container, long itemId, Data data)
           
TxQueueItem(QueueItem item)
           
 
Method Summary
 boolean equals(Object o)
           
 int getId()
          Returns type identifier for this class.
 String getTransactionId()
           
 int hashCode()
           
 boolean isPollOperation()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 TxQueueItem setPollOperation(boolean pollOperation)
           
 TxQueueItem setTransactionId(String transactionId)
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class com.hazelcast.queue.impl.QueueItem
compareTo, getCreationTime, getData, getFactoryId, getItemId, setData, setItemId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxQueueItem

public TxQueueItem()

TxQueueItem

public TxQueueItem(QueueItem item)

TxQueueItem

public TxQueueItem(QueueContainer container,
                   long itemId,
                   Data data)
Method Detail

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.