Search in sources :

Example 16 with QueueContainer

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

the class TxnOfferBackupOperation method run.

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

Example 17 with QueueContainer

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

the class QueueReplicationOperation method readInternal.

@Override
protected void readInternal(ObjectDataInput in) throws IOException {
    int mapSize = in.readInt();
    migrationData = new HashMap<String, QueueContainer>(mapSize);
    for (int i = 0; i < mapSize; i++) {
        String name = in.readUTF();
        QueueContainer container = new QueueContainer(name);
        container.readData(in);
        migrationData.put(name, container);
    }
}
Also used : QueueContainer(com.hazelcast.collection.impl.queue.QueueContainer)

Example 18 with QueueContainer

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

the class RemoveBackupOperation method run.

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

Example 19 with QueueContainer

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

the class TxnPeekOperation method run.

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

Example 20 with QueueContainer

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

the class TxnPollBackupOperation method run.

@Override
public void run() throws Exception {
    QueueContainer queueContainer = getContainer();
    queueContainer.txnCommitPollBackup(itemId);
    response = 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