Ejemplo n.º 1
0
 /**
  * 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();
   }
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }