Code example for BlockingQueue

Methods: remainingCapacity

0
    } 
    public LineProcessorMessage take(long timeout,TimeUnit unit) throws InterruptedException { 
        return bucket.poll(timeout,unit); 
    } 
    public int remainingCapacity() { 
        return bucket.remainingCapacity(); 
    } 
    public Boolean isEmpty() { 
        return bucket.isEmpty(); 
    } 
}