Search in sources :

Example 21 with QueueContainer

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

the class TxnReserveOfferBackupOperation method run.

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

Example 22 with QueueContainer

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

the class TxnReservePollOperation method run.

@Override
public void run() throws Exception {
    QueueContainer createContainer = getContainer();
    response = createContainer.txnPollReserve(reservedOfferId, transactionId);
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Example 23 with QueueContainer

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

the class RemoveOperation method run.

@Override
public void run() throws Exception {
    QueueContainer queueContainer = getContainer();
    itemId = queueContainer.remove(data);
    response = itemId != -1;
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Example 24 with QueueContainer

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

the class SizeOperation method run.

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

Example 25 with QueueContainer

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

the class CompareAndRemoveOperation method run.

@Override
public void run() {
    QueueContainer queueContainer = getContainer();
    dataMap = queueContainer.compareAndRemove(dataList, retain);
    response = dataMap.size() > 0;
}
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