org.apache.kafka.clients.producer
Class ProducerConfig

java.lang.Object
  extended by org.apache.kafka.common.config.AbstractConfig
      extended by org.apache.kafka.clients.producer.ProducerConfig

public class ProducerConfig
extends org.apache.kafka.common.config.AbstractConfig

Configuration for the Kafka Producer. Documentation for these configurations can be found in the Kafka documentation


Field Summary
static java.lang.String ACKS_CONFIG
          acks
static java.lang.String BATCH_SIZE_CONFIG
          batch.size
static java.lang.String BLOCK_ON_BUFFER_FULL_CONFIG
          block.on.buffer.full
static java.lang.String BOOTSTRAP_SERVERS_CONFIG
          bootstrap.servers
static java.lang.String BUFFER_MEMORY_CONFIG
          buffer.memory
static java.lang.String CLIENT_ID_CONFIG
          client.id
static java.lang.String COMPRESSION_TYPE_CONFIG
          compression.type
static java.lang.String KEY_SERIALIZER_CLASS_CONFIG
          key.serializer
static java.lang.String LINGER_MS_CONFIG
          linger.ms
static java.lang.String MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION
          max.in.flight.requests.per.connection
static java.lang.String MAX_REQUEST_SIZE_CONFIG
          max.request.size
static java.lang.String METADATA_FETCH_TIMEOUT_CONFIG
          metadata.fetch.timeout.ms
static java.lang.String METADATA_MAX_AGE_CONFIG
          metadata.max.age.ms
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 RECEIVE_BUFFER_CONFIG
          receive.buffer.bytes
static java.lang.String RECONNECT_BACKOFF_MS_CONFIG
          reconnect.backoff.ms
static java.lang.String RETRIES_CONFIG
          retries
static java.lang.String RETRY_BACKOFF_MS_CONFIG
          retry.backoff.ms
static java.lang.String SEND_BUFFER_CONFIG
          send.buffer.bytes
static java.lang.String TIMEOUT_CONFIG
          timeout.ms
static java.lang.String VALUE_SERIALIZER_CLASS_CONFIG
          value.serializer
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.apache.kafka.common.config.AbstractConfig
get, getBoolean, getClass, getConfiguredInstance, getConfiguredInstances, getDouble, getInt, getList, getLong, getString, logUnused, originals, unused
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOTSTRAP_SERVERS_CONFIG

public static final java.lang.String BOOTSTRAP_SERVERS_CONFIG
bootstrap.servers

See Also:
Constant Field Values

METADATA_FETCH_TIMEOUT_CONFIG

public static final java.lang.String METADATA_FETCH_TIMEOUT_CONFIG
metadata.fetch.timeout.ms

See Also:
Constant Field Values

METADATA_MAX_AGE_CONFIG

public static final java.lang.String METADATA_MAX_AGE_CONFIG
metadata.max.age.ms

See Also:
Constant Field Values

BATCH_SIZE_CONFIG

public static final java.lang.String BATCH_SIZE_CONFIG
batch.size

See Also:
Constant Field Values

BUFFER_MEMORY_CONFIG

public static final java.lang.String BUFFER_MEMORY_CONFIG
buffer.memory

See Also:
Constant Field Values

ACKS_CONFIG

public static final java.lang.String ACKS_CONFIG
acks

See Also:
Constant Field Values

TIMEOUT_CONFIG

public static final java.lang.String TIMEOUT_CONFIG
timeout.ms

See Also:
Constant Field Values

LINGER_MS_CONFIG

public static final java.lang.String LINGER_MS_CONFIG
linger.ms

See Also:
Constant Field Values

CLIENT_ID_CONFIG

public static final java.lang.String CLIENT_ID_CONFIG
client.id

See Also:
Constant Field Values

SEND_BUFFER_CONFIG

public static final java.lang.String SEND_BUFFER_CONFIG
send.buffer.bytes

See Also:
Constant Field Values

RECEIVE_BUFFER_CONFIG

public static final java.lang.String RECEIVE_BUFFER_CONFIG
receive.buffer.bytes

See Also:
Constant Field Values

MAX_REQUEST_SIZE_CONFIG

public static final java.lang.String MAX_REQUEST_SIZE_CONFIG
max.request.size

See Also:
Constant Field Values

RECONNECT_BACKOFF_MS_CONFIG

public static final java.lang.String RECONNECT_BACKOFF_MS_CONFIG
reconnect.backoff.ms

See Also:
Constant Field Values

BLOCK_ON_BUFFER_FULL_CONFIG

public static final java.lang.String BLOCK_ON_BUFFER_FULL_CONFIG
block.on.buffer.full

See Also:
Constant Field Values

RETRIES_CONFIG

public static final java.lang.String RETRIES_CONFIG
retries

See Also:
Constant Field Values

RETRY_BACKOFF_MS_CONFIG

public static final java.lang.String RETRY_BACKOFF_MS_CONFIG
retry.backoff.ms

See Also:
Constant Field Values

COMPRESSION_TYPE_CONFIG

public static final java.lang.String COMPRESSION_TYPE_CONFIG
compression.type

See Also:
Constant Field Values

METRICS_SAMPLE_WINDOW_MS_CONFIG

public static final java.lang.String METRICS_SAMPLE_WINDOW_MS_CONFIG
metrics.sample.window.ms

See Also:
Constant Field Values

METRICS_NUM_SAMPLES_CONFIG

public static final java.lang.String METRICS_NUM_SAMPLES_CONFIG
metrics.num.samples

See Also:
Constant Field Values

METRIC_REPORTER_CLASSES_CONFIG

public static final java.lang.String METRIC_REPORTER_CLASSES_CONFIG
metric.reporters

See Also:
Constant Field Values

MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION

public static final java.lang.String MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION
max.in.flight.requests.per.connection

See Also:
Constant Field Values

KEY_SERIALIZER_CLASS_CONFIG

public static final java.lang.String KEY_SERIALIZER_CLASS_CONFIG
key.serializer

See Also:
Constant Field Values

VALUE_SERIALIZER_CLASS_CONFIG

public static final java.lang.String VALUE_SERIALIZER_CLASS_CONFIG
value.serializer

See Also:
Constant Field Values
Method Detail

main

public static void main(java.lang.String[] args)