code: public boolean abortPendingOffers() throws InterruptedException {
          this.lock.lockInterruptibly();
          try {
              if (this.pendingOffers.get() > 0) {
                  this.pendingOffersAborted.set(true);
                  this.completedCondition.signalAll();
                  return true;
              } else {
                  return false;
              }
          } finally {
              this.lock.unlock();
          }
      }
docs: Aborts all current callers/threads waiting for a pending offer to be
  accepted by the window.
  @return True if there were threads/callers that have a pending offer.
  @throws InterruptedException Thrown if the calling thread was interrupted
  while waiting to obtain the window lock.