Class Blocker


  • public class Blocker
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Blocker​(boolean blocked)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void block()  
      void pass()  
      void unblock()  
      • Methods inherited from class java.lang.Object

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

      • Blocker

        public Blocker​(boolean blocked)
    • Method Detail

      • block

        public void block()
      • unblock

        public void unblock()
      • pass

        public void pass()
                  throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException