code: public QueueBuilder<T>  threadFactory(ThreadFactory factory)
      {
          Preconditions.checkNotNull(factory, "factory cannot be null");
  
          this.factory = factory;
          return this;
      }
docs: Change the thread factory used. The default is {@link Executors#defaultThreadFactory()}
  
  @param factory new thread factory to use
  @return this