docs: public int syncWriteTo(RingByteBuffer ring) throws IOException, InterruptedException
      {
          writeToLock.lock();
          try
          {
              getSync.waitUntil(()->hasRemaining());
              getAll(false);
              int rc = super.writeTo(ring);
              discard();
              return rc;
          }
          finally
          {
              writeToLock.unlock();
          }
      }