Examples of DrainOperation


Examples of com.hazelcast.concurrent.semaphore.operations.DrainOperation

                    case DEAD_MEMBER_BACKUP_OPERATION:
                        return new DeadMemberBackupOperation();
                    case DRAIN_BACKUP_OPERATION:
                        return new DrainBackupOperation();
                    case DRAIN_OPERATION:
                        return new DrainOperation();
                    case INIT_BACKUP_OPERATION:
                        return new InitBackupOperation();
                    case INIT_OPERATION:
                        return new InitOperation();
                    case REDUCE_BACKUP_OPERATION:
View Full Code Here

Examples of com.hazelcast.concurrent.semaphore.operations.DrainOperation

        return future.getSafely();
    }

    @Override
    public int drainPermits() {
        DrainOperation operation = new DrainOperation(name);
        InternalCompletableFuture<Integer> future = invoke(operation);
        return future.getSafely();
    }
View Full Code Here

Examples of com.hazelcast.concurrent.semaphore.operations.DrainOperation

        super(name, -1);
    }

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

Examples of com.hazelcast.concurrent.semaphore.operations.DrainOperation

        super(name, -1);
    }

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

Examples of com.hazelcast.queue.DrainOperation

        super(name);
        this.maxSize = maxSize;
    }

    protected Operation prepareOperation() {
        return new DrainOperation(name, maxSize);
    }
View Full Code Here

Examples of com.hazelcast.queue.DrainOperation

        this.maxSize = maxSize;
    }

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

Examples of com.hazelcast.queue.DrainOperation

        SerializableCollection collectionContainer = invokeAndGet(operation);
        return (List<Data>) collectionContainer.getCollection();
    }

    Collection<Data> drainInternal(int maxSize) {
        DrainOperation operation = new DrainOperation(name, maxSize);
        SerializableCollection collectionContainer = invokeAndGet(operation);
        return collectionContainer.getCollection();
    }
View Full Code Here

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

        SerializableCollection collectionContainer = invokeAndGet(operation);
        return (List<Data>) collectionContainer.getCollection();
    }

    Collection<Data> drainInternal(int maxSize) {
        DrainOperation operation = new DrainOperation(name, maxSize);
        SerializableCollection collectionContainer = invokeAndGet(operation);
        return collectionContainer.getCollection();
    }
View Full Code Here

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

        this.maxSize = maxSize;
    }

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

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

                return new DrainBackupOperation();
            }
        };
        constructors[DRAIN] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
            public IdentifiedDataSerializable createNew(Integer arg) {
                return new DrainOperation();
            }
        };
        constructors[ITERATOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
            public IdentifiedDataSerializable createNew(Integer arg) {
                return new IteratorOperation();
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.