Package com.hazelcast.queue

Examples of com.hazelcast.queue.QueueContainer


        return container.getPollWaitNotifyKey();
    }

    @Override
    public boolean shouldWait() {
        final QueueContainer container = getOrCreateContainer();
        return getWaitTimeout() != 0 && (container.size() + container.txMapSize()) == 0;
    }
View Full Code Here


        this.transactionId = transactionId;
    }

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

        this.data = data;
    }

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

        this.transactionId = transactionId;
    }

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

        return QueueDataSerializerHook.TRANSACTION_ROLLBACK;
    }

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

        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

        }
    }

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

        return container.getOfferWaitNotifyKey();
    }

    @Override
    public boolean shouldWait() {
        QueueContainer container = getOrCreateContainer();
        return getWaitTimeout() != 0 && !container.hasEnoughCapacity(txSize + 1);
    }
View Full Code Here

        this.data = data;
    }

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

        this.pollOperation = pollOperation;
    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        if (pollOperation) {
            response = container.txnRollbackPoll(itemId, false);
        } else {
            response = container.txnRollbackOffer(itemId);
        }
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.queue.QueueContainer

Copyright © 2018 www.massapicom. 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.