/** * Notifies this <tt>GoogleContactsSourceService</tt> that a specific <tt>GoogleContactsQuery</tt> * has stopped. * * @param query the <tt>GoogleContactsQuery</tt> which has stopped */ void stopped(GoogleContactsQuery query) { synchronized (queries) { if (queries.remove(query)) queries.notify(); } }
/** * Removes query from the list of queries. * * @param query the query that will be removed. */ public synchronized void removeQuery(ContactQuery query) { if (queries.remove(query)) queries.notify(); }