Class AutomaticLatch

java.lang.Object
org.apache.activemq.artemis.utils.AbstractLatch
org.apache.activemq.artemis.utils.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 Details

    • AutomaticLatch

      public AutomaticLatch()
    • AutomaticLatch

      public AutomaticLatch(int count)
  • Method Details