Code example for ConcurrentLinkedQueue

Methods: isEmpty

		mDoneTimeout.sendEmptyMessageDelayed(MSG_DONE, SELF_DESTRUCT_TIMEOUT);
	private void stopIfQueuesEmpty() { 
		if (mSyncQueue.isEmpty() && mToScan.isEmpty()) {
	 * Scans the media database to see if the given item is currently there. If it is, update the 
	 * cast media to point to the local content: URI for it. 
	 * @param context 
	 * @param castMedia 
	 *            Local URI to the cast. 
	 * @param pubUri 
	 *            public URI to the media file. 
	 * @return local URI if it exists.