|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkafka.common.config.AbstractConfig
kafka.clients.producer.ProducerConfig
public class ProducerConfig
The producer configuration keys
Field Summary | |
---|---|
static java.lang.String |
BLOCK_ON_BUFFER_FULL
When our memory buffer is exhausted we must either stop accepting new records (block) or throw errors. |
static java.lang.String |
BROKER_LIST_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_JMX
|
static java.lang.String |
LINGER_MS_CONFIG
The producer groups together any records that arrive in between request sends. |
static java.lang.String |
MAX_PARTITION_SIZE_CONFIG
The buffer size allocated for a partition. |
static java.lang.String |
MAX_REQUEST_SIZE_CONFIG
The maximum size of a request. |
static java.lang.String |
METADATA_FETCH_TIMEOUT_CONFIG
The amount of time to block waiting to fetch metadata about a topic the first time a record is sent to that topic. |
static java.lang.String |
METADATA_REFRESH_MS_CONFIG
Force a refresh of the cluster metadata after this period of time. |
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 |
REQUEST_TIMEOUT_CONFIG
The maximum amount of time the server will wait for acknowledgments from followers to meet the acknowledgment requirements the producer has specified. |
static java.lang.String |
REQUIRED_ACKS_CONFIG
The number of acknowledgments the producer requires from the server before considering a request complete. |
static java.lang.String |
SEND_BUFFER_CONFIG
The size of the TCP send buffer to use when sending data |
static java.lang.String |
TOTAL_BUFFER_MEMORY_CONFIG
The total memory used by the producer to buffer records waiting to be sent to the server. |
Method Summary |
---|
Methods inherited from class kafka.common.config.AbstractConfig |
---|
get, getBoolean, getClass, getConfiguredInstance, getInt, getList, getLong, getString, 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 BROKER_LIST_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 METADATA_FETCH_TIMEOUT_CONFIG
public static final java.lang.String MAX_PARTITION_SIZE_CONFIG
public static final java.lang.String TOTAL_BUFFER_MEMORY_CONFIG
BLOCK_ON_BUFFER_FULL
.
public static final java.lang.String REQUIRED_ACKS_CONFIG
public static final java.lang.String REQUEST_TIMEOUT_CONFIG
public static final java.lang.String LINGER_MS_CONFIG
MAX_PARTITION_SIZE_CONFIG
worth of records
for a partition it will be sent immediately regardless of this setting, however if we have fewer than this many
bytes accumulated for this partition we will "linger" for the specified time waiting for more records to show up.
This setting defaults to 0.
public static final java.lang.String METADATA_REFRESH_MS_CONFIG
public static final java.lang.String CLIENT_ID_CONFIG
public static final java.lang.String SEND_BUFFER_CONFIG
public static final java.lang.String MAX_REQUEST_SIZE_CONFIG
public static final java.lang.String RECONNECT_BACKOFF_MS_CONFIG
public static final java.lang.String BLOCK_ON_BUFFER_FULL
public static final java.lang.String ENABLE_JMX
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |