if (debug()) log.debug ("PureAckSender: adding " +pam);
  public void add (PureAckMessage pam)   {    synchronized (queue)     {      queue.add (pam);      haveNewMessages = true;      queue.notify();    }  }