Examples of QueueContainer


Examples of com.hazelcast.queue.impl.QueueContainer

        this.transactionId = transactionId;
    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        response = container.txnEnsureReserve(itemId);
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer

        this.data = data;
    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        container.txnCommitOffer(itemId, data, true);
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer

        this.data = data;
    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        itemId = container.remove(data);
        response = itemId != -1;
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer

        this.transactionId = transactionId;
    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        response = container.txnEnsureReserve(itemId);
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer

        return QueueDataSerializerHook.CHECK_EVICT;
    }

    @Override
    public void run() throws Exception {
        final QueueContainer container = getOrCreateContainer();
        if (container.isEvictable()) {
            ProxyService proxyService = getNodeEngine().getProxyService();
            proxyService.destroyDistributedObject(getServiceName(), name);
        }
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer

        this.transactionId = transactionId;
    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        container.txnPollBackupReserve(itemId, transactionId);
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer

        return QueueDataSerializerHook.TRANSACTION_ROLLBACK;
    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        container.rollbackTransaction(transactionId);
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer

        this.transactionId = transactionId;
    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        if (container.hasEnoughCapacity(txSize + 1)) {
            response = container.txnOfferReserve(transactionId);
        }
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer

        }
    }

    @Override
    public WaitNotifyKey getWaitKey() {
        QueueContainer container = getOrCreateContainer();
        return container.getOfferWaitNotifyKey();
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer

        return container.getOfferWaitNotifyKey();
    }

    @Override
    public boolean shouldWait() {
        QueueContainer container = getOrCreateContainer();
        return getWaitTimeout() != 0 && !container.hasEnoughCapacity(txSize + 1);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.