use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class CheckAndEvictOperation method run.
@Override
public void run() throws Exception {
final QueueContainer queueContainer = getContainer();
if (queueContainer.isEvictable()) {
ProxyService proxyService = getNodeEngine().getProxyService();
proxyService.destroyDistributedObject(getServiceName(), name);
}
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class ClearBackupOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
queueContainer.clearBackup(itemIdSet);
response = true;
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class QueueTransactionRollbackOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
queueContainer.rollbackTransaction(transactionId);
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class PeekOperation method run.
@Override
public void run() {
QueueContainer queueContainer = getContainer();
QueueItem item = queueContainer.peek();
response = item != null ? item.getData() : null;
}
use of com.hazelcast.collection.impl.queue.QueueContainer in project hazelcast by hazelcast.
the class PollBackupOperation method run.
@Override
public void run() throws Exception {
QueueContainer queueContainer = getContainer();
queueContainer.pollBackup(itemId);
response = Boolean.TRUE;
}
Aggregations