code: public void setAckTimeout(long ackTimeout, TimeUnit unit) {
          this.ackTimeout = Duration.ofMillis(unit.toMillis(ackTimeout));
      }
docs: Sets the ACK timeout in the specified time unit.
  
  @param ackTimeout the pubAckWait to set
  @param unit       the time unit to set