code: public synchronized void setRequestBufferSize(int size) {
  
          if (size <= 0) {
              throw new IllegalArgumentException("request buffer size must be greater than zero");
          }
  
          if (this.requestBuffer.size() != 0) {
              throw new IllegalStateException("cannot resize non-empty ThreadPool request buffer");
          }
  
          this.requestBuffer = new BoundedBuffer(size);
          requestBufferInitialCapacity_ = size;
          requestBufferExpansionLimit_ = requestBufferInitialCapacity_ * 10;
      }
docs: Sets the size of the request buffer. If work has been
  dispatched on this thread pool, the behavior of this
  method and all subsequent calls to this pool are
  undefined.
  
  As a result of the request buffer size being set the
  expansion limit of the buffer is set to be 10
  times greater than the newly configured buffer size.