Package org.apache.tika.pipes
Class PipesClient
- java.lang.Object
-
- org.apache.tika.pipes.PipesClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class PipesClient extends Object implements Closeable
The PipesClient is designed to be single-threaded. It only allots a single thread forprocess(FetchEmitTuple)
processing. SeeAsyncProcessor
for handling multiple PipesClients.
-
-
Constructor Summary
Constructors Constructor Description PipesClient(PipesConfigBase pipesConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getFilesProcessed()
PipesResult
process(FetchEmitTuple t)
-
-
-
Constructor Detail
-
PipesClient
public PipesClient(PipesConfigBase pipesConfig)
-
-
Method Detail
-
getFilesProcessed
public int getFilesProcessed()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
process
public PipesResult process(FetchEmitTuple t) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-