use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionIsEmptyOperation method run.
@Override
public void run() throws Exception {
CollectionContainer collectionContainer = getOrCreateContainer();
response = collectionContainer.size() == 0;
}
use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionReplicationOperation method run.
@Override
public void run() throws Exception {
CollectionService service = getService();
for (Map.Entry<String, CollectionContainer> entry : migrationData.entrySet()) {
String name = entry.getKey();
CollectionContainer container = entry.getValue();
container.init(getNodeEngine());
service.addContainer(name, container);
}
}
use of com.hazelcast.collection.impl.collection.CollectionContainer in project hazelcast by hazelcast.
the class CollectionSizeOperation method run.
@Override
public void run() throws Exception {
CollectionContainer collectionContainer = getOrCreateContainer();
response = collectionContainer.size();
}
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);
}
}
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);
}
Aggregations