synchronized (deliveryLock)
if (ready || grabbing)
   protected void promptDelivery()   {      synchronized (deliveryLock)      {         if (ready || grabbing)         {            channel.deliver(this);         }      }   }