code: public Query setQueryLiveInstances(boolean queryLiveInstances)
      {
          this.queryLiveInstances = queryLiveInstances;
          if (this.queryHistoryInstances)
          {
              this.pageSize = null;
              this.firstRow = null;
          }
          return this;
      }
docs: By default, querying only occurs on ended (OK or not) job instances. If this parameter is set to true, it will also include living
  (waiting, running, ...) job instances.<br>
  If you also query on live instances at the same time, this will reset pagination as it is impossible to use pagination with both.<br>
  <br>
  Setting this to true has a noticeable performance impact and should be used as little as possible (or should be used when
  {@link #setQueryHistoryInstances(boolean)} is false, which is not the default)