use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionRemoveBackupOperation method run.
@Override
public void run() throws Exception {
CollectionContainer collectionContainer = getOrCreateContainer();
collectionContainer.removeBackup(itemId);
}
use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionRemoveOperation method run.
@Override
public void run() throws Exception {
response = false;
CollectionContainer collectionContainer = getOrCreateContainer();
CollectionItem item = collectionContainer.remove(value);
if (item != null) {
response = true;
itemId = item.getItemId();
}
}
use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionReplicationOperation method writeInternal.
@Override
protected void writeInternal(ObjectDataOutput out) throws IOException {
out.writeInt(migrationData.size());
for (Map.Entry<String, CollectionContainer> entry : migrationData.entrySet()) {
out.writeUTF(entry.getKey());
CollectionContainer container = entry.getValue();
container.writeData(out);
}
}
use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionAddAllOperation method run.
@Override
public void run() throws Exception {
if (!hasEnoughCapacity(valueList.size())) {
response = false;
return;
}
CollectionContainer collectionContainer = getOrCreateContainer();
valueMap = collectionContainer.addAll(valueList);
response = !valueMap.isEmpty();
}
use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionAddBackupOperation method run.
@Override
public void run() throws Exception {
CollectionContainer collectionContainer = getOrCreateContainer();
collectionContainer.addBackup(itemId, value);
}
Aggregations