private void reportStale() {
        for (FileResourceConsumer consumer : consumersManager.getConsumers()) {
            FileStarted fs = consumer.getCurrentFile();
            if (fs == null) {
                continue;
            }
            long elapsed = fs.getElapsedMillis();
            if (elapsed > staleThresholdMillis) {
                String elapsedString = Double.toString((double) elapsed / (double) 1000);
                report("A thread has been working on " + fs.getResourceId() + " for " + elapsedString + " seconds.");
            }
        }
    }
Set the amount of time in milliseconds to use as the threshold for determining
a stale parse.

@param staleThresholdMillis threshold for determining whether or not to report a stale
tika-batch/src/main/java/org/apache/tika/batch/StatusReporter.java