code: public void setClientWaitParams(int maxWait, int waitDelay) {
          if (maxWait <= 0 || waitDelay <= 0) {
              throw new IllegalArgumentException("Parameter is less than 0");
          }
          this.session.maxWait = maxWait;
          this.session.waitDelay = waitDelay;
      }
docs: Changes the default client timeout parameters.
  In the beginning of the transfer, the critical moment is the wait
  for the initial server reply. If it does not arrive after timeout,
  client assumes that the transfer could not start for some reason and
  aborts the operation. Default timeout in miliseconds
  is Session.DEFAULT_MAX_WAIT. During the waiting period,
  client polls the control channel once a certain period, which is by
  default set to Session.DEFAULT_WAIT_DELAY.
  <br>
  Use this method to change these parameters.
  @param maxWait timeout in miliseconds
  @param waitDelay polling period