Package org.apache.tika.batch
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 child process.This will call System.exit(-1) if the process doesn't stop after
pauseOnEarlyTermination
milliseconds.
-
-
Constructor Summary
Constructors Constructor Description Interrupter(long pauseOnEarlyTermination)
-
-
-
Method Detail
-
call
public IFileProcessorFutureResult call()
- Specified by:
call
in interfaceCallable<IFileProcessorFutureResult>
-
-