Search in sources :

Example 21 with CollectionContainer

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

the class CollectionClearOperation method run.

@Override
public void run() throws Exception {
    CollectionContainer collectionContainer = getOrCreateContainer();
    itemIdMap = collectionContainer.clear();
}
Also used : CollectionContainer(com.hazelcast.collection.impl.collection.CollectionContainer)

Example 22 with CollectionContainer

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

the class CollectionTxnAddOperation method run.

@Override
public void run() throws Exception {
    CollectionContainer collectionContainer = getOrCreateContainer();
    collectionContainer.commitAdd(itemId, value);
    response = true;
}
Also used : CollectionContainer(com.hazelcast.collection.impl.collection.CollectionContainer)

Example 23 with CollectionContainer

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

the class CollectionTxnRemoveBackupOperation method run.

@Override
public void run() throws Exception {
    CollectionContainer collectionContainer = getOrCreateContainer();
    collectionContainer.commitRemoveBackup(itemId);
}
Also used : CollectionContainer(com.hazelcast.collection.impl.collection.CollectionContainer)

Example 24 with CollectionContainer

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

the class CollectionReserveRemoveOperation method run.

@Override
public void run() throws Exception {
    CollectionContainer collectionContainer = getOrCreateContainer();
    response = collectionContainer.reserveRemove(reservedItemId, value, transactionId);
}
Also used : CollectionContainer(com.hazelcast.collection.impl.collection.CollectionContainer)

Aggregations

CollectionContainer (com.hazelcast.collection.impl.collection.CollectionContainer)24 Map (java.util.Map)2 CollectionItem (com.hazelcast.collection.impl.collection.CollectionItem)1 CollectionService (com.hazelcast.collection.impl.collection.CollectionService)1 ListContainer (com.hazelcast.collection.impl.list.ListContainer)1 SetContainer (com.hazelcast.collection.impl.set.SetContainer)1 Data (com.hazelcast.nio.serialization.Data)1 SerializableList (com.hazelcast.spi.impl.SerializableList)1