@Value.Immutable(copy=false)
public abstract class BulkIndexerConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ONE_MEGABYTE |
| Constructor and Description |
|---|
BulkIndexerConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSettings() |
int |
getAutomaticFlushMillis()
Returns the number of milliseconds to wait before automatically flushing the bulk queue.
|
abstract BulkOperationFactory |
getBulkOperationFactory() |
IndexerListener |
getListener() |
int |
getMaxBulkOperationBytes()
Returns the maximum size of a bulk operation (in bytes)
|
int |
getMaxBulkOperations()
Returns the maximum size of a bulk operation (in documents)
|
int |
getMaximumThreads() |
int |
getQueueSize() |
int |
getRetryDelayMillis() |
com.github.rholder.retry.Retryer<BulkResponse> |
getRetryer() |
int |
getShutdownTimeout() |
java.util.concurrent.TimeUnit |
getShutdownTimeoutUnit() |
boolean |
isBlockingQueue()
Returns true if caller should block when indexer queue is full.
|
public static final int ONE_MEGABYTE
@Value.Default public int getAutomaticFlushMillis()
@Value.Auxiliary public abstract BulkOperationFactory getBulkOperationFactory()
@Value.Default @Value.Auxiliary public IndexerListener getListener()
@Value.Default public int getMaxBulkOperationBytes()
@Value.Default public int getMaxBulkOperations()
@Value.Default public int getMaximumThreads()
@Value.Default public int getQueueSize()
@Value.Default public int getRetryDelayMillis()
@Value.Default @Value.Auxiliary public com.github.rholder.retry.Retryer<BulkResponse> getRetryer()
@Value.Default public int getShutdownTimeout()
@Value.Default public java.util.concurrent.TimeUnit getShutdownTimeoutUnit()
@Value.Default public boolean isBlockingQueue()
@Value.Check protected void checkSettings()