Code example for BlockingQueue

Methods: take

0
        this.msisdnQueue = msisdnQueue;
    } 
 
    public String receive() {
        try { 
            return msisdnQueue.take();
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            return null; 
        } 
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE