Documentation of 'jsat.utils.ModifiableCountDownLatch' Java class
ModifiableCountDownLatch
jsat.utils

Class ModifiableCountDownLatch



  • public class ModifiableCountDownLatch
    extends java.lang.Object
    Provides a CountDownLatch that can have the number of counts increased as well as decreased.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void await()
      Waits until the count gets reduced to zero, and then all threads waiting will get to run.
      void countDown()
      Decrements the counter.
      void countUp()
      Increments the count.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModifiableCountDownLatch

        public ModifiableCountDownLatch(int count)
    • Method Detail

      • await

        public void await()
                   throws java.lang.InterruptedException
        Waits until the count gets reduced to zero, and then all threads waiting will get to run.
        Throws:
        java.lang.InterruptedException
      • countDown

        public void countDown()
        Decrements the counter. Allowing threads that have called await() to run once the count reaches zero.
      • countUp

        public void countUp()
        Increments the count. Once the count has reached zero once, incrementing the count back above zero will have no affect.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.