Search in sources :

Example 31 with QueueContainer

use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.

the class AddAllBackupOperation method run.

@Override
public void run() throws Exception {
    QueueContainer queueContainer = getContainer();
    queueContainer.addAllBackup(dataMap);
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Example 32 with QueueContainer

use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.

the class AddAllOperation method run.

@Override
public void run() {
    QueueContainer queueContainer = getContainer();
    if (queueContainer.hasEnoughCapacity()) {
        dataMap = queueContainer.addAll(dataList);
        response = true;
    } else {
        response = false;
    }
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Example 33 with QueueContainer

use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.

the class ClearOperation method run.

@Override
public void run() {
    QueueContainer queueContainer = getContainer();
    dataMap = queueContainer.clear();
    response = true;
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Example 34 with QueueContainer

use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.

the class CompareAndRemoveBackupOperation method run.

@Override
public void run() throws Exception {
    QueueContainer queueContainer = getContainer();
    queueContainer.compareAndRemoveBackup(keySet);
    response = true;
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Aggregations

QueueContainer (com.hazelcast.collection.impl.queue.QueueContainer)34 SerializableList (com.hazelcast.spi.impl.SerializableList)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 QueueItem (com.hazelcast.collection.impl.queue.QueueItem)1 QueueService (com.hazelcast.collection.impl.queue.QueueService)1 Config (com.hazelcast.config.Config)1 QueueConfig (com.hazelcast.config.QueueConfig)1 Data (com.hazelcast.nio.serialization.Data)1 NodeEngine (com.hazelcast.spi.NodeEngine)1 ProxyService (com.hazelcast.spi.ProxyService)1 ArrayList (java.util.ArrayList)1