Package com.hazelcast.concurrent.countdownlatch.operations

Examples of com.hazelcast.concurrent.countdownlatch.operations.SetCountOperation


                    case COUNT_DOWN_OPERATION:
                        return new CountDownOperation();
                    case GET_COUNT_OPERATION:
                        return new GetCountOperation();
                    case SET_COUNT_OPERATION:
                        return new SetCountOperation();
                    default:
                        return null;
                }
            }
        };
View Full Code Here


        return f.getSafely();
    }

    @Override
    public boolean trySetCount(int count) {
        SetCountOperation op = new SetCountOperation(name, count);
        InternalCompletableFuture<Boolean> f = invoke(op);
        return f.getSafely();
    }
View Full Code Here

        return name;
    }

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

        return name;
    }

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

        return name;
    }

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

    @Override
    public boolean trySetCount(int count) {
        if (count < 0) {
            throw new IllegalArgumentException("count can't be negative");
        }
        SetCountOperation op = new SetCountOperation(name, count);
        InternalCompletableFuture<Boolean> f = invoke(op);
        return f.getSafely();
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.concurrent.countdownlatch.operations.SetCountOperation

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.