public void setMaxAliveTimeSeconds(int maxAliveTimeSeconds) {
        this.maxAliveTimeSeconds = maxAliveTimeSeconds;
    }
The maximum amount of time that this process can be alive.  To avoid
memory leaks, it is sometimes beneficial to shutdown (and restart) the
process periodically.
<p/>
If the value is &lt; 0, the process will run until completion, interruption or exception.

@param maxAliveTimeSeconds maximum amount of time in seconds to remain alive
tika-batch/src/main/java/org/apache/tika/batch/BatchProcess.java