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);
}
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;
}
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);
}
use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionCompareAndRemoveOperation method run.
@Override
public void run() throws Exception {
CollectionContainer collectionContainer = getOrCreateContainer();
itemIdMap = collectionContainer.compareAndRemove(retain, valueSet);
response = !itemIdMap.isEmpty();
}
use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionGetAllOperation method run.
@Override
public void run() throws Exception {
CollectionContainer collectionContainer = getOrCreateContainer();
List<Data> all = collectionContainer.getAll();
response = new SerializableList(all);
}
Aggregations