public synchronized urlObj deQueueUrl() throws Exception {
        if (mQueue != null) {
            urlObj  urlObj = mQueue.poll();
            notifyAll();
            return urlObj;
        }else {
            wait();
        }
        return null;
    }