use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class DrainOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
dataMap = queueContainer.drain(maxSize);
response = new SerializableList(new ArrayList<Data>(dataMap.values()));
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class TxnOfferOperation method run.
@Override
public void run() throws Exception {
QueueContainer createContainer = getContainer();
response = createContainer.txnCommitOffer(getItemId(), data, false);
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class TxnPollOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
data = queueContainer.txnCommitPoll(getItemId());
response = data != null;
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class TxnPrepareBackupOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
for (long itemId : itemIds) {
boolean remove = CollectionTxnUtil.isRemove(itemId);
queueContainer.txnEnsureBackupReserve(Math.abs(itemId), transactionId, remove);
}
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class TxnReservePollBackupOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
queueContainer.txnPollBackupReserve(itemId, transactionId);
}
Aggregations