public class AsyncProcessor extends Object implements Closeable
| Constructor and Description |
|---|
AsyncProcessor(Path tikaConfigPath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkActive() |
void |
close() |
void |
finished() |
int |
getCapacity() |
long |
getTotalProcessed() |
boolean |
offer(FetchEmitTuple t,
long offerMs) |
boolean |
offer(List<FetchEmitTuple> newFetchEmitTuples,
long offerMs) |
public AsyncProcessor(Path tikaConfigPath) throws TikaException, IOException
TikaExceptionIOExceptionpublic boolean offer(List<FetchEmitTuple> newFetchEmitTuples, long offerMs) throws PipesException, InterruptedException
PipesExceptionInterruptedExceptionpublic int getCapacity()
public boolean offer(FetchEmitTuple t, long offerMs) throws PipesException, InterruptedException
PipesExceptionInterruptedExceptionpublic void finished()
throws InterruptedException
InterruptedExceptionpublic boolean checkActive()
throws InterruptedException
InterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getTotalProcessed()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.