Package org.apache.tika.batch
Class Interrupter
java.lang.Object
org.apache.tika.batch.Interrupter
- All Implemented Interfaces:
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.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Interrupter
public Interrupter(long pauseOnEarlyTermination)
-
-
Method Details
-
call
- Specified by:
call
in interfaceCallable<IFileProcessorFutureResult>
-