Class JMHSample_30_Interrupts

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.BlockingQueue<java.lang.Integer> q  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      void put()  
      void setup()  
      java.lang.Integer take()  
      • Methods inherited from class java.lang.Object

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

      • q

        private java.util.concurrent.BlockingQueue<java.lang.Integer> q
    • Constructor Detail

      • JMHSample_30_Interrupts

        public JMHSample_30_Interrupts()
    • Method Detail

      • setup

        public void setup()
      • take

        public java.lang.Integer take()
                               throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • put

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