/** * Sets the maximum number of background threads to use for graph building. Set to zero to disable * background building. When set to a non-zero amount, if there is additional pending work jobs * may be started. * * @param maxAdditionalThreads maximum number of background threads to use */ public void setMaxAdditionalThreads(final int maxAdditionalThreads) { ArgumentChecker.isTrue(maxAdditionalThreads >= 0, "maxAdditionalThreads"); _maxAdditionalThreads = maxAdditionalThreads; startBackgroundBuild(); }