Search in sources :

Example 1 with QueueContainer

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);
    }
}
Also used : ProxyService(com.hazelcast.spi.ProxyService) QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Example 2 with QueueContainer

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;
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Example 3 with QueueContainer

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);
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Example 4 with QueueContainer

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;
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer) QueueItem(com.hazelcast.collection.impl.queue.QueueItem)

Example 5 with QueueContainer

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;
}
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