public final class BatchControl
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTUAL_MEMORY_LOW_PROPERTY
The minimum percentage of the JVM actual memory that should be used by a
full batch.
|
static String |
BATCH_INITIAL_PROPERTY
The initial number of notices to accept before processing them.
|
static String |
BATCH_MAXIMUM_PROPERTY
The maximum number of notices to accept before processing them.
|
static int |
DEFAULT_ACTUAL_MEMORY_LOW
Default value for '"memory.actual.use.low"'.
|
static int |
DEFAULT_BATCH_INITIAL
Default value for '"batch.limit.initial"'.
|
static int |
DEFAULT_BATCH_MAXIMUM
Default value for '"batch.limit.maximum"'.
|
static int |
DEFAULT_TOTAL_MEMORY_HIGH
Default value for '"memory.total.use.high"'.
|
static int |
DEFAULT_TOTAL_MEMORY_LOW
Default value for '"memory.total.use.low"'.
|
static int |
DEFAULT_TOTAL_MEMORY_MAXIMUM
Default value for '"memory.total.use.maximum"'.
|
static String |
RECEIVED_TRACES
Received values trace subdirectory.
|
static String |
SENT_TRACES
Sent values trace subdirectory.
|
static String |
TOTAL_MEMORY_HIGH_PROPERTY
The maximum percentage of the JVM total memory that should be used be a
batch.
|
static String |
TOTAL_MEMORY_LOW_PROPERTY
The minimum percentage of the JVM total memory that should be used by a
full batch.
|
static String |
TOTAL_MEMORY_MAXIMUM_PROPERTY
The maximum percentage of the JVM total memory that can be used by a
batch.
|
Constructor and Description |
---|
BatchControl() |
Modifier and Type | Method and Description |
---|---|
BatchImpl |
newBatch()
Returns a new batch instance.
|
boolean |
setUp(Metadata metadata,
Optional<CutoffControl> cutoffControl,
CacheManager cacheManager,
KeyedGroups configProperties)
Sets up this batch factory.
|
public static final String ACTUAL_MEMORY_LOW_PROPERTY
public static final String BATCH_INITIAL_PROPERTY
public static final String BATCH_MAXIMUM_PROPERTY
public static final int DEFAULT_ACTUAL_MEMORY_LOW
public static final int DEFAULT_BATCH_INITIAL
public static final int DEFAULT_BATCH_MAXIMUM
public static final int DEFAULT_TOTAL_MEMORY_HIGH
public static final int DEFAULT_TOTAL_MEMORY_LOW
public static final int DEFAULT_TOTAL_MEMORY_MAXIMUM
public static final String RECEIVED_TRACES
public static final String SENT_TRACES
public static final String TOTAL_MEMORY_HIGH_PROPERTY
public static final String TOTAL_MEMORY_LOW_PROPERTY
public static final String TOTAL_MEMORY_MAXIMUM_PROPERTY
@Nonnull @CheckReturnValue public BatchImpl newBatch()
@CheckReturnValue public boolean setUp(@Nonnull Metadata metadata, @Nonnull Optional<CutoffControl> cutoffControl, @Nonnull CacheManager cacheManager, @Nonnull KeyedGroups configProperties)
metadata
- The metadata.cutoffControl
- The optional cutoff control object.cacheManager
- The cache manager.configProperties
- The config properties.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.