com.hazelcast.collection
Class TxCollectionItem
java.lang.Object
com.hazelcast.collection.CollectionItem
com.hazelcast.collection.TxCollectionItem
- All Implemented Interfaces:
- DataSerializable, IdentifiedDataSerializable, Comparable<CollectionItem>
public class TxCollectionItem
- extends CollectionItem
TxCollectionItem
public TxCollectionItem()
TxCollectionItem
public TxCollectionItem(CollectionItem item)
TxCollectionItem
public TxCollectionItem(long itemId,
Data value,
String transactionId,
boolean removeOperation)
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.