public class AsyncConfig extends PipesConfigBase
DEFAULT_MAX_FILES_PROCESSED_PER_PROCESS, DEFAULT_MAX_FOR_EMIT_BATCH, DEFAULT_NUM_CLIENTS, DEFAULT_SHUTDOWN_CLIENT_AFTER_MILLS, DEFAULT_STARTUP_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS
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() |
int |
getNumEmitters()
Number of emitters
|
PipesReporter |
getPipesReporter() |
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 |
setNumEmitters(int numEmitters) |
void |
setPipesReporter(PipesReporter pipesReporter) |
void |
setQueueSize(int queueSize) |
getForkedJvmArgs, getJavaPath, getMaxFilesProcessedPerProcess, getMaxForEmitBatchBytes, getNumClients, getShutdownClientAfterMillis, getSleepOnStartupTimeoutMillis, getStartupTimeoutMillis, getTikaConfig, getTimeoutMillis, setForkedJvmArgs, setJavaPath, setMaxFilesProcessedPerProcess, setMaxForEmitBatchBytes, setNumClients, setShutdownClientAfterMillis, setSleepOnStartupTimeoutMillis, setStartupTimeoutMillis, setTikaConfig, setTikaConfig, setTimeoutMillis
buildComposite, buildComposite, buildSingle, 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 void setNumEmitters(int numEmitters)
public int getQueueSize()
public void setQueueSize(int queueSize)
public int getNumEmitters()
public PipesReporter getPipesReporter()
public void setPipesReporter(PipesReporter pipesReporter)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.