Search in sources :

Example 1 with CollectionContainer

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

the class SetReplicationOperation method readInternal.

@Override
protected void readInternal(ObjectDataInput in) throws IOException {
    int mapSize = in.readInt();
    migrationData = new HashMap<String, CollectionContainer>(mapSize);
    for (int i = 0; i < mapSize; i++) {
        String name = in.readUTF();
        SetContainer container = new SetContainer();
        container.readData(in);
        migrationData.put(name, container);
    }
}
Also used : SetContainer(com.hazelcast.collection.impl.set.SetContainer) CollectionContainer(com.hazelcast.collection.impl.collection.CollectionContainer)

Example 2 with CollectionContainer

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

the class CollectionReserveAddOperation method run.

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

Example 3 with CollectionContainer

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

the class CollectionTransactionRollbackOperation method run.

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

Example 4 with CollectionContainer

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

the class CollectionTxnAddBackupOperation method run.

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

Example 5 with CollectionContainer

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

the class CollectionTxnRemoveOperation method run.

@Override
public void run() throws Exception {
    CollectionContainer collectionContainer = getOrCreateContainer();
    item = collectionContainer.commitRemove(itemId);
}
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