Code example for BlockingQueue

Methods: add

0
    { 
        if (entry == null)
        { 
            throw new IllegalArgumentException("entry cannot be null!");
        } 
        queue.add(entry);
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java