use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class ContainsOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
response = queueContainer.contains(dataList);
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class IsEmptyOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
response = queueContainer.size() == 0;
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class IteratorOperation method run.
@Override
public void run() {
QueueContainer queueContainer = getContainer();
List<Data> dataList = queueContainer.getAsDataList();
response = new SerializableList(dataList);
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class OfferBackupOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
queueContainer.offerBackup(data, itemId);
response = true;
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class OfferOperation method run.
@Override
public void run() {
QueueContainer queueContainer = getContainer();
if (queueContainer.hasEnoughCapacity()) {
itemId = queueContainer.offer(data);
response = true;
} else {
response = false;
}
}
Aggregations