Class Interrupter

java.lang.Object
org.apache.tika.batch.Interrupter
All Implemented Interfaces:
Callable<IFileProcessorFutureResult>

public class Interrupter extends Object implements Callable<IFileProcessorFutureResult>
Class that waits for input on System.in. If this reads EOF or if there is an exception from the parent's IO, this will send a signal to shutdown the forked process.

This will call System.exit(-1) if the process doesn't stop after pauseOnEarlyTermination milliseconds.