Class TaskThread.Buffer

  • Enclosing class:
    TaskThread

    class TaskThread.Buffer
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object[] buf  
      protected int count  
      protected int in  
      protected int out  
      protected int size  
    • Constructor Summary

      Constructors 
      Constructor Description
      Buffer​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get()  
      void put​(java.lang.Object o)  
      void release()  
      • Methods inherited from class java.lang.Object

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

      • buf

        protected java.lang.Object[] buf
      • in

        protected int in
      • out

        protected int out
      • count

        protected int count
      • size

        protected int size
    • Constructor Detail

      • Buffer

        public Buffer​(int size)
    • Method Detail

      • put

        public void put​(java.lang.Object o)
                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • get

        public java.lang.Object get()
                             throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • release

        public void release()