com.hazelcast.collection
Class TxCollectionItem

java.lang.Object
  extended by com.hazelcast.collection.CollectionItem
      extended by com.hazelcast.collection.TxCollectionItem
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, Comparable<CollectionItem>

public class TxCollectionItem
extends CollectionItem


Field Summary
 
Fields inherited from class com.hazelcast.collection.CollectionItem
creationTime, itemId, value
 
Constructor Summary
TxCollectionItem()
           
TxCollectionItem(CollectionItem item)
           
TxCollectionItem(long itemId, Data value, String transactionId, boolean removeOperation)
           
 
Method Summary
 boolean equals(Object o)
           
 int getId()
          Returns type identifier for this class.
 String getTransactionId()
           
 int hashCode()
           
 boolean isRemoveOperation()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 TxCollectionItem setRemoveOperation(boolean removeOperation)
           
 TxCollectionItem setTransactionId(String transactionId)
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class com.hazelcast.collection.CollectionItem
compareTo, getCreationTime, getFactoryId, getItemId, getValue, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxCollectionItem

public TxCollectionItem()

TxCollectionItem

public TxCollectionItem(CollectionItem item)

TxCollectionItem

public TxCollectionItem(long itemId,
                        Data value,
                        String transactionId,
                        boolean removeOperation)
Method Detail

getTransactionId

public String getTransactionId()

isRemoveOperation

public boolean isRemoveOperation()

setTransactionId

public TxCollectionItem setTransactionId(String transactionId)

setRemoveOperation

public TxCollectionItem setRemoveOperation(boolean removeOperation)

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 CollectionItem
Returns:
type id

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 CollectionItem
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 CollectionItem
Parameters:
in - input
Throws:
IOException

equals

public boolean equals(Object o)
Overrides:
equals in class CollectionItem

hashCode

public int hashCode()
Overrides:
hashCode in class CollectionItem


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.