Examples of CountDown


Examples of com.volantis.shared.time.Countdown

                }
            }

            // If the state requires it then wait until the state changes.
            if (state.mustWait()) {
                Countdown countdown = Countdown.getCountdown(timeout, clock);
                do {
                    try {
                        Period remaining = countdown.countdown();
                        entry.wait(remaining.inMillisTreatIndefinitelyAsZero());
                        state = entry.getState();
                    } catch (InterruptedException e) {
                        throw new ExtendedRuntimeException(e);
                    } catch (TimedOutException e) {
View Full Code Here

Examples of org.elasticsearch.common.util.concurrent.CountDown

        if (!event.localNodeMaster()) {
            return;
        }
        final String source = "reroute_rivers_node_changed";
        //we'll try again a few times if we don't find the river _meta document while the type is there
        final CountDown countDown = new CountDown(RIVER_START_MAX_RETRIES);
        riverClusterService.submitStateUpdateTask(source, new RiverClusterStateUpdateTask() {
            @Override
            public RiverClusterState execute(RiverClusterState currentState) {
                return updateRiverClusterState(source, currentState, event.state(), countDown);
            }
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.