Class AutomaticLatch


  • public class AutomaticLatch
    extends AbstractLatch
    An automatic latch has the same semantic as the ReusableLatch However this class has a replaceable callback that could be called when the number of elements reach zero. With that you can either block to wait completion, or to send a callback to be used when it reaches 0.
    • Constructor Detail

      • AutomaticLatch

        public AutomaticLatch()
      • AutomaticLatch

        public AutomaticLatch​(int count)
    • Method Detail

      • afterCompletion

        public void afterCompletion​(java.lang.Runnable newRun)