Package com.hazelcast.queue

Examples of com.hazelcast.queue.SizeOperation


        return null;
    }

    public int size() {
        checkTransactionState();
        SizeOperation operation = new SizeOperation(name);
        try {
            Future<Integer> f = getNodeEngine().getOperationService().invokeOnPartition(QueueService.SERVICE_NAME, operation, partitionId);
            Integer size = f.get();
            return size + offeredQueue.size();
        } catch (Throwable t) {
View Full Code Here


    public SizeRequest(String name) {
        super(name);
    }

    protected Operation prepareOperation() {
        return new SizeOperation(name);
    }
View Full Code Here

        super(name);
    }

    @Override
    protected Operation prepareOperation() {
        return new SizeOperation(name);
    }
View Full Code Here

        IsEmptyOperation operation = new IsEmptyOperation(name);
        return (Boolean) invokeAndGet(operation);
    }

    public int size() {
        SizeOperation operation = new SizeOperation(name);
        return (Integer) invokeAndGet(operation);
    }
View Full Code Here

        return null;
    }

    public int size() {
        checkTransactionState();
        SizeOperation operation = new SizeOperation(name);
        try {
            Future<Integer> f = invoke(operation);
            Integer size = f.get();
            return size + offeredQueue.size();
        } catch (Throwable t) {
View Full Code Here

TOP

Related Classes of com.hazelcast.queue.SizeOperation

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.