Code example for LinkedBlockingQueue

Methods: poll

0
     * Get the first digit in the dtmfQueue. 
     *  
     * @return The digit, or null if none. 
     */ 
    public String getDtmfDigit() {
        return m_dtmfQueue.poll();
    } 
 
    /** 
     * Add a digit to the dtmfQueue. 
     *  
     * @param digit 
     */ 
    public void appendDtmfQueue(String digit) {
        m_dtmfQueue.add(digit);
    } 
 
    /** 
     * Parse the initial response from "connect" into name/value pairs. Store in the variables 
     * list. 
     *