|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.kafka.common.config.AbstractConfig org.apache.kafka.clients.consumer.ConsumerConfig
public class ConsumerConfig
The consumer configuration keys
Field Summary | |
---|---|
static java.lang.String |
AUTO_COMMIT_INTERVAL_MS_CONFIG
The frequency in milliseconds that the consumer offsets are committed to Kafka. |
static java.lang.String |
AUTO_OFFSET_RESET_CONFIG
What to do when there is no initial offset in Kafka or if an offset is out of range: smallest: automatically reset the offset to the smallest offset largest: automatically reset the offset to the largest offset disable: throw exception to the consumer if no previous offset is found for the consumer's group anything else: throw exception to the consumer. |
static java.lang.String |
BOOTSTRAP_SERVERS_CONFIG
A list of URLs to use for establishing the initial connection to the cluster. |
static java.lang.String |
CLIENT_ID_CONFIG
The id string to pass to the server when making requests. |
static java.lang.String |
ENABLE_AUTO_COMMIT_CONFIG
If true, periodically commit to Kafka the offsets of messages already returned by the consumer. |
static java.lang.String |
FETCH_BUFFER_CONFIG
The minimum amount of memory that should be used to fetch at least one message for a partition. |
static java.lang.String |
FETCH_MAX_WAIT_MS_CONFIG
The maximum amount of time the server will block before answering the fetch request if there isn't sufficient data to immediately satisfy FETCH_MIN_BYTES_CONFIG . |
static java.lang.String |
FETCH_MIN_BYTES_CONFIG
The minimum amount of data the server should return for a fetch request. |
static java.lang.String |
GROUP_ID_CONFIG
The identifier of the group this consumer belongs to. |
static java.lang.String |
HEARTBEAT_FREQUENCY
The number of times a consumer sends a heartbeat to the co-ordinator broker within a SESSION_TIMEOUT_MS time window. |
static java.lang.String |
METADATA_FETCH_TIMEOUT_CONFIG
The maximum amount of time to block waiting to fetch metadata about a topic the first time a record is received from that topic. |
static java.lang.String |
METRIC_REPORTER_CLASSES_CONFIG
metric.reporters |
static java.lang.String |
METRICS_NUM_SAMPLES_CONFIG
metrics.num.samples |
static java.lang.String |
METRICS_SAMPLE_WINDOW_MS_CONFIG
metrics.sample.window.ms |
static java.lang.String |
PARTITION_ASSIGNMENT_STRATEGY
The friendly name of the partition assignment strategy that the server will use to distribute partition ownership amongst consumer instances when group management is used |
static java.lang.String |
RECONNECT_BACKOFF_MS_CONFIG
The amount of time to wait before attempting to reconnect to a given host. |
static java.lang.String |
SESSION_TIMEOUT_MS
The timeout after which, if the poll(timeout) is not invoked, the consumer is
marked dead and a rebalance operation is triggered for the group identified by GROUP_ID_CONFIG . |
static java.lang.String |
SOCKET_RECEIVE_BUFFER_CONFIG
The size of the TCP send buffer to use when fetching data |
static java.lang.String |
TOTAL_BUFFER_MEMORY_CONFIG
The total memory used by the consumer to buffer records received from the server. |
Method Summary |
---|
Methods inherited from class org.apache.kafka.common.config.AbstractConfig |
---|
get, getBoolean, getClass, getConfiguredInstance, getConfiguredInstances, getDouble, getInt, getList, getLong, getString, logUnused, unused |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GROUP_ID_CONFIG
subscribe(topics)
. This is also required
if the consumer uses the default Kafka based offset management strategy.
public static final java.lang.String SESSION_TIMEOUT_MS
poll(timeout)
is not invoked, the consumer is
marked dead and a rebalance operation is triggered for the group identified by GROUP_ID_CONFIG
. Relevant
if the consumer uses the group management functionality by invoking subscribe(topics)
public static final java.lang.String HEARTBEAT_FREQUENCY
SESSION_TIMEOUT_MS
time window.
This frequency affects the latency of a rebalance operation since the co-ordinator broker notifies a consumer of a rebalance
in the heartbeat response. Relevant if the consumer uses the group management functionality by invoking
subscribe(topics)
public static final java.lang.String BOOTSTRAP_SERVERS_CONFIG
host1:port1,host2:port2,...
. These urls are just used for the initial connection to discover the
full cluster membership (which may change dynamically) so this list need not contain the full set of servers (you
may want more than one, though, in case a server is down).
public static final java.lang.String ENABLE_AUTO_COMMIT_CONFIG
public static final java.lang.String PARTITION_ASSIGNMENT_STRATEGY
public static final java.lang.String AUTO_COMMIT_INTERVAL_MS_CONFIG
ENABLE_AUTO_COMMIT_CONFIG
is turned on.
public static final java.lang.String AUTO_OFFSET_RESET_CONFIG
public static final java.lang.String FETCH_MIN_BYTES_CONFIG
public static final java.lang.String FETCH_MAX_WAIT_MS_CONFIG
FETCH_MIN_BYTES_CONFIG
. This should be less than or equal to the timeout used in
poll(timeout)
public static final java.lang.String METADATA_FETCH_TIMEOUT_CONFIG
public static final java.lang.String TOTAL_BUFFER_MEMORY_CONFIG
public static final java.lang.String FETCH_BUFFER_CONFIG
public static final java.lang.String CLIENT_ID_CONFIG
public static final java.lang.String SOCKET_RECEIVE_BUFFER_CONFIG
public static final java.lang.String RECONNECT_BACKOFF_MS_CONFIG
public static final java.lang.String METRICS_SAMPLE_WINDOW_MS_CONFIG
metrics.sample.window.ms
public static final java.lang.String METRICS_NUM_SAMPLES_CONFIG
metrics.num.samples
public static final java.lang.String METRIC_REPORTER_CLASSES_CONFIG
metric.reporters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |