Code example for ConcurrentLinkedQueue

Methods: clear

0
                try { notify(); } catch (Exception e) {}
            } 
        } 
 
        public void clearQueue() { 
            mQueue.clear();
            mLinkMap.clear();
        } 
 
        private LoadItem mCurrentItem;
 
        public void run() { 
 
            while (!isInterrupted) {
                try { 
                    mCurrentItem = mLinkMap.get(mQueue.poll());
                } catch (Exception e) {
                    mCurrentItem = null;
                } 
 
                if (mCurrentItem == null) {