code: public synchronized void     replace(QueueGroups group, Activity activity)
      {
          replace(group, activity, 0, TimeUnit.MILLISECONDS);
      }
docs: Replace the given activity in the given queue. If not in the queue, adds it to the queue.
  
  @param group the queue - all activities within a queue are executed serially
  @param activity the activity