Search in sources :

Example 1 with TxCollectionItem

use of com.hazelcast.collection.impl.collection.TxCollectionItem in project hazelcast by hazelcast.

the class ListContainer method rollbackRemove.

@Override
public void rollbackRemove(long itemId) {
    TxCollectionItem txItem = txMap.remove(itemId);
    if (txItem == null) {
        logger.warning("Transaction log cannot be found for rolling back 'remove()' operation." + " Missing log item id: " + itemId);
        return;
    }
    CollectionItem item = new CollectionItem(itemId, txItem.getValue());
    addTxItemOrdered(item);
}
Also used : TxCollectionItem(com.hazelcast.collection.impl.collection.TxCollectionItem) CollectionItem(com.hazelcast.collection.impl.collection.CollectionItem) TxCollectionItem(com.hazelcast.collection.impl.collection.TxCollectionItem)

Aggregations

CollectionItem (com.hazelcast.collection.impl.collection.CollectionItem)1 TxCollectionItem (com.hazelcast.collection.impl.collection.TxCollectionItem)1