Code example for CountDownLatch

Methods: countDown

0
    } 
 
    @EventHandler 
    public void secondListener(SecondEvent event)
    { 
        latch.countDown();
    } 
 
    public static class FirstEvent 
    { 
    } 
 
    public static class SecondEvent 
    { 
    } 
}