Code example for BlockingQueue

Methods: isEmpty

0
    } catch (InterruptedException e) {
    } 
  } 
 
  public boolean isEmpty() { 
    return queue.isEmpty();
  } 
 
  public void dispose() { 
    terminated = true;
    currentThread.interrupt();
  } 
}