Package com.hazelcast.core

Examples of com.hazelcast.core.ICountDownLatch.countDown()


        HazelcastInstance instance = createHazelcastInstance();
        final ICountDownLatch latch = instance.getCountDownLatch(randomString());
        latch.trySetCount(1);
        TestThread thread = new TestThread() {
            public void doRun() {
                latch.countDown();
            }
        };
        thread.start();
        assertOpenEventually(latch);
    }
View Full Code Here


                        completedLatch.countDown();
                    }
                }
            }.start();
        }
        latch.countDown();
        assertOpenEventually(completedLatch);
    }

    @Test(timeout = 15000)
    public void testAwait_whenTimeOut() throws InterruptedException {
View Full Code Here

                  abortDeploy(version, ExceptionUtils.getStackTrace(t));
                } finally {
                  // Decrement the countdown latch. On 0, deployer knows that the deploy
                  // finished.
                  ICountDownLatch countdown = coord.getCountDownLatchForDeploy(version);
                  countdown.countDown();
                }
              }
            });
            try {
              // This line makes the wait thread wait for the deploy as long as the configuration tells
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.