Package org.apache.tika.pipes.async
Class AsyncProcessor
- java.lang.Object
- 
- org.apache.tika.pipes.async.AsyncProcessor
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 
 public class AsyncProcessor extends Object implements Closeable This is the main class for handling async requests. This manages AsyncClients and AsyncEmitters.
- 
- 
Constructor SummaryConstructors Constructor Description AsyncProcessor(Path tikaConfigPath)AsyncProcessor(Path tikaConfigPath, PipesIterator pipesIterator)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckActive()voidclose()voidfinished()intgetCapacity()longgetTotalProcessed()booleanoffer(List<FetchEmitTuple> newFetchEmitTuples, long offerMs)booleanoffer(FetchEmitTuple t, long offerMs)
 
- 
- 
- 
Constructor Detail- 
AsyncProcessorpublic AsyncProcessor(Path tikaConfigPath) throws TikaException, IOException - Throws:
- TikaException
- IOException
 
 - 
AsyncProcessorpublic AsyncProcessor(Path tikaConfigPath, PipesIterator pipesIterator) throws TikaException, IOException - Throws:
- TikaException
- IOException
 
 
- 
 - 
Method Detail- 
offerpublic boolean offer(List<FetchEmitTuple> newFetchEmitTuples, long offerMs) throws PipesException, InterruptedException - Throws:
- PipesException
- InterruptedException
 
 - 
getCapacitypublic int getCapacity() 
 - 
offerpublic boolean offer(FetchEmitTuple t, long offerMs) throws PipesException, InterruptedException - Throws:
- PipesException
- InterruptedException
 
 - 
finishedpublic void finished() throws InterruptedException- Throws:
- InterruptedException
 
 - 
checkActivepublic boolean checkActive() throws InterruptedException- Throws:
- InterruptedException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
 - 
getTotalProcessedpublic long getTotalProcessed() 
 
- 
 
-