Code example for ConcurrentLinkedQueue

Methods: isEmpty

0
		mDoneTimeout.removeMessages(MSG_DONE);
		mDoneTimeout.sendEmptyMessageDelayed(MSG_DONE, SELF_DESTRUCT_TIMEOUT);
	} 
 
	private void stopIfQueuesEmpty() { 
		if (mSyncQueue.isEmpty() && mToScan.isEmpty()) {
			this.stopSelf();
		} 
	} 
 
	/** 
	 * 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. 
	 * @throws SyncException