Interface BlockingQueue4<T>

    • Method Detail

      • next

        T next​(long timeout)
        throws BlockingQueueStoppedException

        Returns the next queued item or waits for it to be available for the maximum of timeout miliseconds.

        Parameters:
        timeout - maximum time to wait for the next avilable item in miliseconds
        Returns:
        the next item or null if timeout is reached
        Throws:
        BlockingQueueStoppedException - if the stop() is called.
      • stop

        void stop()