Code example for BlockingQueue

Methods: size

0
        ((Runnable) task).run();
    } 
 
    @Override 
    public boolean workAvailable() { 
        return taskQueue.size() > 0;
    } 
 
    @Override 
    public String getFiberName() {
        return "Fiber"; 
    } 
}