public class AsyncConfig extends PipesConfigBase
Constructor and Description |
---|
AsyncConfig() |
Modifier and Type | Method and Description |
---|---|
long |
getEmitMaxEstimatedBytes()
When the emit queue hits this estimated size (sum of
estimated extract sizes), emit the batch.
|
long |
getEmitWithinMillis() |
long |
getMaxForEmitBatchBytes()
What is the maximum bytes size per extract that
will be allowed in the emit queue.
|
int |
getNumEmitters()
Number of emitters
|
int |
getQueueSize()
FetchEmitTuple queue size
|
static AsyncConfig |
load(Path p) |
void |
setEmitMaxEstimatedBytes(long emitMaxEstimatedBytes) |
void |
setEmitWithinMillis(long emitWithinMillis)
If nothing has been emitted in this amount of time
and the
getEmitMaxEstimatedBytes() has not been reached yet,
emit what's in the emit queue. |
void |
setMaxForEmitBatchBytes(long maxForEmitBatchBytes) |
void |
setNumEmitters(int numEmitters) |
void |
setQueueSize(int queueSize) |
getForkedJvmArgs, getJavaPath, getMaxFilesProcessed, getNumClients, getShutdownClientAfterMillis, getStartupTimeoutMillis, getTikaConfig, getTimeoutMillis, setForkedJvmArgs, setJavaPath, setMaxFilesProcessed, setNumClients, setShutdownClientAfterMillis, setTikaConfig, setTikaConfig, setTimeoutMillis
buildComposite, buildComposite, buildSingle, configure, handleSettings
public static AsyncConfig load(Path p) throws IOException, TikaConfigException
IOException
TikaConfigException
public long getEmitWithinMillis()
public void setEmitWithinMillis(long emitWithinMillis)
getEmitMaxEstimatedBytes()
has not been reached yet,
emit what's in the emit queue.emitWithinMillis
- public long getEmitMaxEstimatedBytes()
public void setEmitMaxEstimatedBytes(long emitMaxEstimatedBytes)
public long getMaxForEmitBatchBytes()
0
, this will never send an extract back for batch emitting,
but will emit the extract directly from the processor.public void setMaxForEmitBatchBytes(long maxForEmitBatchBytes)
public void setNumEmitters(int numEmitters)
public int getQueueSize()
public void setQueueSize(int queueSize)
public int getNumEmitters()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.