Class ResultQueue<T>


  • public class ResultQueue<T>
    extends java.lang.Object
    Typed result queue, where T is the type of objects in underlying collection.
    Since:
    3.1-u7
    • Constructor Summary

      Constructors 
      Constructor Description
      ResultQueue​(int maxSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void close()  
      void put​(T item)  
      T take​(int time, java.util.concurrent.TimeUnit timeUnit)  
      • Methods inherited from class java.lang.Object

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

      • TIME_WAIT_RESULT_UNIT

        public static final java.util.concurrent.TimeUnit TIME_WAIT_RESULT_UNIT
    • Constructor Detail

      • ResultQueue

        public ResultQueue​(int maxSize)
    • Method Detail

      • put

        public void put​(T item)
                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • take

        public T take​(int time,
                      java.util.concurrent.TimeUnit timeUnit)
               throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • close

        protected void close()