Examples of OfferOperation


Examples of com.hazelcast.queue.OfferOperation

        super(name, timeoutMillis);
        this.data = data;
    }

    protected Operation prepareOperation() {
        return new OfferOperation(name, timeoutMillis, data);
    }
View Full Code Here

Examples of com.hazelcast.queue.OfferOperation

        this.data = data;
    }

    @Override
    protected Operation prepareOperation() {
        return new OfferOperation(name, timeoutMillis, data);
    }
View Full Code Here

Examples of com.hazelcast.queue.OfferOperation

        }
    }

    boolean offerInternal(Data data, long timeout) throws InterruptedException {
        throwExceptionIfNull(data);
        OfferOperation operation = new OfferOperation(name, timeout, data);
        try {
            return (Boolean) invokeAndGet(operation);
        } catch (Throwable throwable) {
            throw ExceptionUtil.rethrowAllowInterrupted(throwable);
        }
View Full Code Here

Examples of com.hazelcast.queue.impl.operations.OfferOperation

        this.data = data;
    }

    @Override
    protected Operation prepareOperation() {
        return new OfferOperation(name, timeoutMillis, data);
    }
View Full Code Here

Examples of com.hazelcast.queue.impl.operations.OfferOperation

        }
    }

    boolean offerInternal(Data data, long timeout) throws InterruptedException {
        throwExceptionIfNull(data);
        OfferOperation operation = new OfferOperation(name, timeout, data);
        try {
            return (Boolean) invokeAndGet(operation);
        } catch (Throwable throwable) {
            throw ExceptionUtil.rethrowAllowInterrupted(throwable);
        }
View Full Code Here

Examples of com.hazelcast.queue.impl.operations.OfferOperation

    public DataSerializableFactory createFactory() {

        ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[REMAINING_CAPACITY + 1];
        constructors[OFFER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
            public IdentifiedDataSerializable createNew(Integer arg) {
                return new OfferOperation();
            }
        };

        constructors[OFFER_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
            public IdentifiedDataSerializable createNew(Integer arg) {
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.