Package com.hazelcast.queue.impl

Examples of com.hazelcast.queue.impl.QueueContainer


        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


        this.pollOperation = pollOperation;
    }

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

        this.itemId = itemId;
    }

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

        return Boolean.TRUE.equals(response);
    }

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

        this.transactionId = transactionId;
    }

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

        response = container.txnPollReserve(reservedOfferId, transactionId);
    }

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

        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();
        container.txnOfferBackupReserve(itemId, transactionId);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.queue.impl.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.