http://git-wip-us.apache.org/repos/asf/kafka-site/blob/b91f7909/0100/javadoc/org/apache/kafka/clients/producer/ProducerConfig.html ---------------------------------------------------------------------- diff --git a/0100/javadoc/org/apache/kafka/clients/producer/ProducerConfig.html b/0100/javadoc/org/apache/kafka/clients/producer/ProducerConfig.html new file mode 100644 index 0000000..4dffee8 --- /dev/null +++ b/0100/javadoc/org/apache/kafka/clients/producer/ProducerConfig.html @@ -0,0 +1,818 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc (version 1.7.0_79) on Tue May 17 21:36:38 PDT 2016 --> +<title>ProducerConfig (clients 0.10.0.0 API)</title> +<meta name="date" content="2016-05-17"> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +</head> +<body> +<script type="text/javascript"><!-- + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="ProducerConfig (clients 0.10.0.0 API)"; + } +//--> +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar_top"> +<!-- --> +</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/kafka/clients/producer/Producer.html" title="interface in org.apache.kafka.clients.producer"><span class="strong">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="interface in org.apache.kafka.clients.producer"><span class="strong">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/kafka/clients/producer/ProducerConfig.html" target="_top">Frames</a></li> +<li><a href="ProducerConfig.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li><a href="#field_summary">Field</a> | </li> +<li>Constr | </li> +<li><a href="#method_summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field_detail">Field</a> | </li> +<li>Constr | </li> +<li><a href="#method_detail">Method</a></li> +</ul> +</div> +<a name="skip-navbar_top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.kafka.clients.producer</div> +<h2 title="Class ProducerConfig" class="title">Class ProducerConfig</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li>java.lang.Object</li> +<li> +<ul class="inheritance"> +<li><a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html" title="class in org.apache.kafka.common.config">org.apache.kafka.common.config.AbstractConfig</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.kafka.clients.producer.ProducerConfig</li> +</ul> +</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<hr> +<br> +<pre>public class <span class="strong">ProducerConfig</span> +extends <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html" title="class in org.apache.kafka.common.config">AbstractConfig</a></pre> +<div class="block">Configuration for the Kafka Producer. Documentation for these configurations can be found in the <a + href="http://kafka.apache.org/documentation.html#producerconfigs">Kafka documentation</a></div> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- =========== FIELD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field_summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> +<caption><span>Fields</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Field and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#ACKS_CONFIG">ACKS_CONFIG</a></strong></code> +<div class="block"><code>acks</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#BATCH_SIZE_CONFIG">BATCH_SIZE_CONFIG</a></strong></code> +<div class="block"><code>batch.size</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#BLOCK_ON_BUFFER_FULL_CONFIG">BLOCK_ON_BUFFER_FULL_CONFIG</a></strong></code> +<div class="block"><strong>Deprecated.</strong> +<div class="block"><i>This config will be removed in a future release. Also, the <a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#METADATA_FETCH_TIMEOUT_CONFIG"><code>METADATA_FETCH_TIMEOUT_CONFIG</code></a> is no longer honored when this property is set to true.</i></div> +</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#BOOTSTRAP_SERVERS_CONFIG">BOOTSTRAP_SERVERS_CONFIG</a></strong></code> +<div class="block"><code>bootstrap.servers</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#BUFFER_MEMORY_CONFIG">BUFFER_MEMORY_CONFIG</a></strong></code> +<div class="block"><code>buffer.memory</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#CLIENT_ID_CONFIG">CLIENT_ID_CONFIG</a></strong></code> +<div class="block"><code>client.id</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#COMPRESSION_TYPE_CONFIG">COMPRESSION_TYPE_CONFIG</a></strong></code> +<div class="block"><code>compression.type</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#CONNECTIONS_MAX_IDLE_MS_CONFIG">CONNECTIONS_MAX_IDLE_MS_CONFIG</a></strong></code> +<div class="block"><code>connections.max.idle.ms</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#INTERCEPTOR_CLASSES_CONFIG">INTERCEPTOR_CLASSES_CONFIG</a></strong></code> +<div class="block"><code>interceptor.classes</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#INTERCEPTOR_CLASSES_DOC">INTERCEPTOR_CLASSES_DOC</a></strong></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#KEY_SERIALIZER_CLASS_CONFIG">KEY_SERIALIZER_CLASS_CONFIG</a></strong></code> +<div class="block"><code>key.serializer</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#KEY_SERIALIZER_CLASS_DOC">KEY_SERIALIZER_CLASS_DOC</a></strong></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#LINGER_MS_CONFIG">LINGER_MS_CONFIG</a></strong></code> +<div class="block"><code>linger.ms</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#MAX_BLOCK_MS_CONFIG">MAX_BLOCK_MS_CONFIG</a></strong></code> +<div class="block"><code>max.block.ms</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION">MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION</a></strong></code> +<div class="block"><code>max.in.flight.requests.per.connection</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#MAX_REQUEST_SIZE_CONFIG">MAX_REQUEST_SIZE_CONFIG</a></strong></code> +<div class="block"><code>max.request.size</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#METADATA_FETCH_TIMEOUT_CONFIG">METADATA_FETCH_TIMEOUT_CONFIG</a></strong></code> +<div class="block"><strong>Deprecated.</strong> +<div class="block"><i>This config will be removed in a future release. Please use <a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#MAX_BLOCK_MS_CONFIG"><code>MAX_BLOCK_MS_CONFIG</code></a></i></div> +</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#METADATA_MAX_AGE_CONFIG">METADATA_MAX_AGE_CONFIG</a></strong></code> +<div class="block"><code>metadata.max.age.ms</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#METRIC_REPORTER_CLASSES_CONFIG">METRIC_REPORTER_CLASSES_CONFIG</a></strong></code> +<div class="block"><code>metric.reporters</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#METRICS_NUM_SAMPLES_CONFIG">METRICS_NUM_SAMPLES_CONFIG</a></strong></code> +<div class="block"><code>metrics.num.samples</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#METRICS_SAMPLE_WINDOW_MS_CONFIG">METRICS_SAMPLE_WINDOW_MS_CONFIG</a></strong></code> +<div class="block"><code>metrics.sample.window.ms</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#PARTITIONER_CLASS_CONFIG">PARTITIONER_CLASS_CONFIG</a></strong></code> +<div class="block"><code>partitioner.class</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#RECEIVE_BUFFER_CONFIG">RECEIVE_BUFFER_CONFIG</a></strong></code> +<div class="block"><code>receive.buffer.bytes</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#RECONNECT_BACKOFF_MS_CONFIG">RECONNECT_BACKOFF_MS_CONFIG</a></strong></code> +<div class="block"><code>reconnect.backoff.ms</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#REQUEST_TIMEOUT_MS_CONFIG">REQUEST_TIMEOUT_MS_CONFIG</a></strong></code> +<div class="block"><code>request.timeout.ms</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#RETRIES_CONFIG">RETRIES_CONFIG</a></strong></code> +<div class="block"><code>retries</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#RETRY_BACKOFF_MS_CONFIG">RETRY_BACKOFF_MS_CONFIG</a></strong></code> +<div class="block"><code>retry.backoff.ms</code></div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#SEND_BUFFER_CONFIG">SEND_BUFFER_CONFIG</a></strong></code> +<div class="block"><code>send.buffer.bytes</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#TIMEOUT_CONFIG">TIMEOUT_CONFIG</a></strong></code> +<div class="block"><strong>Deprecated.</strong> +<div class="block"><i>This config will be removed in a future release. Please use <a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#REQUEST_TIMEOUT_MS_CONFIG"><code>REQUEST_TIMEOUT_MS_CONFIG</code></a></i></div> +</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#VALUE_SERIALIZER_CLASS_CONFIG">VALUE_SERIALIZER_CLASS_CONFIG</a></strong></code> +<div class="block"><code>value.serializer</code></div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#VALUE_SERIALIZER_CLASS_DOC">VALUE_SERIALIZER_CLASS_DOC</a></strong></code> </td> +</tr> +</table> +</li> +</ul> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method_summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span>Methods</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static java.util.Map<java.lang.String,java.lang.Object></code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#addSerializerToConfig(java.util.Map,%20org.apache.kafka.common.serialization.Serializer,%20org.apache.kafka.common.serialization.Serializer)">addSerializerToConfig</a></strong>(java.util.Map<java.lang.String,java.lang.Object> configs, + <a href="../../../../../org/apache/kafka/common/serialization/Serializer.html" title="interface in org.apache.kafka.common.serialization">Serializer</a><?> keySerializer, + <a href="../../../../../org/apache/kafka/common/serialization/Serializer.html" title="interface in org.apache.kafka.common.serialization">Serializer</a><?> valueSerializer)</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static java.util.Properties</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#addSerializerToConfig(java.util.Properties,%20org.apache.kafka.common.serialization.Serializer,%20org.apache.kafka.common.serialization.Serializer)">addSerializerToConfig</a></strong>(java.util.Properties properties, + <a href="../../../../../org/apache/kafka/common/serialization/Serializer.html" title="interface in org.apache.kafka.common.serialization">Serializer</a><?> keySerializer, + <a href="../../../../../org/apache/kafka/common/serialization/Serializer.html" title="interface in org.apache.kafka.common.serialization">Serializer</a><?> valueSerializer)</code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#main(java.lang.String[])">main</a></strong>(java.lang.String[] args)</code> </td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods_inherited_from_class_org.apache.kafka.common.config.AbstractConfig"> +<!-- --> +</a> +<h3>Methods inherited from class org.apache.kafka.common.config.<a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html" title="class in org.apache.kafka.common.config">AbstractConfig</a></h3> +<code><a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#equals(java.lang.Object)">equals</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#get(java.lang.String)">get</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getBoolean(java.lang.String)">getBoolean</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getClass(java.lang.String)">getClass</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getConfiguredInstance(java.lang.String,%20java.lang.Class)">getConfiguredInstance</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getConfiguredInstances(java.lang.String,%20java.lang.Class)">getConfiguredInstances</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getDouble(java.lang.String)">getDouble</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getInt(java.l ang.String)">getInt</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getList(java.lang.String)">getList</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getLong(java.lang.String)">getLong</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getPassword(java.lang.String)">getPassword</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getShort(java.lang.String)">getShort</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#getString(java.lang.String)">getString</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#hashCode()">hashCode</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#ignore(java.lang.String)">ignore</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#logUnused()">logUnused</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractCon fig.html#originals()">originals</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#originalsStrings()">originalsStrings</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#originalsWithPrefix(java.lang.String)">originalsWithPrefix</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#unused()">unused</a>, <a href="../../../../../org/apache/kafka/common/config/AbstractConfig.html#values()">values</a></code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.Object</h3> +<code>clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait</code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ FIELD DETAIL =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field_detail"> +<!-- --> +</a> +<h3>Field Detail</h3> +<a name="BOOTSTRAP_SERVERS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BOOTSTRAP_SERVERS_CONFIG</h4> +<pre>public static final java.lang.String BOOTSTRAP_SERVERS_CONFIG</pre> +<div class="block"><code>bootstrap.servers</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.BOOTSTRAP_SERVERS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="METADATA_FETCH_TIMEOUT_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>METADATA_FETCH_TIMEOUT_CONFIG</h4> +<pre>@Deprecated +public static final java.lang.String METADATA_FETCH_TIMEOUT_CONFIG</pre> +<div class="block"><span class="strong">Deprecated.</span> <i>This config will be removed in a future release. Please use <a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#MAX_BLOCK_MS_CONFIG"><code>MAX_BLOCK_MS_CONFIG</code></a></i></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.METADATA_FETCH_TIMEOUT_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="METADATA_MAX_AGE_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>METADATA_MAX_AGE_CONFIG</h4> +<pre>public static final java.lang.String METADATA_MAX_AGE_CONFIG</pre> +<div class="block"><code>metadata.max.age.ms</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.METADATA_MAX_AGE_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="BATCH_SIZE_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BATCH_SIZE_CONFIG</h4> +<pre>public static final java.lang.String BATCH_SIZE_CONFIG</pre> +<div class="block"><code>batch.size</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.BATCH_SIZE_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="ACKS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ACKS_CONFIG</h4> +<pre>public static final java.lang.String ACKS_CONFIG</pre> +<div class="block"><code>acks</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.ACKS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="TIMEOUT_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>TIMEOUT_CONFIG</h4> +<pre>@Deprecated +public static final java.lang.String TIMEOUT_CONFIG</pre> +<div class="block"><span class="strong">Deprecated.</span> <i>This config will be removed in a future release. Please use <a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#REQUEST_TIMEOUT_MS_CONFIG"><code>REQUEST_TIMEOUT_MS_CONFIG</code></a></i></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.TIMEOUT_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="LINGER_MS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>LINGER_MS_CONFIG</h4> +<pre>public static final java.lang.String LINGER_MS_CONFIG</pre> +<div class="block"><code>linger.ms</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.LINGER_MS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="CLIENT_ID_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>CLIENT_ID_CONFIG</h4> +<pre>public static final java.lang.String CLIENT_ID_CONFIG</pre> +<div class="block"><code>client.id</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.CLIENT_ID_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="SEND_BUFFER_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>SEND_BUFFER_CONFIG</h4> +<pre>public static final java.lang.String SEND_BUFFER_CONFIG</pre> +<div class="block"><code>send.buffer.bytes</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.SEND_BUFFER_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="RECEIVE_BUFFER_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RECEIVE_BUFFER_CONFIG</h4> +<pre>public static final java.lang.String RECEIVE_BUFFER_CONFIG</pre> +<div class="block"><code>receive.buffer.bytes</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.RECEIVE_BUFFER_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="MAX_REQUEST_SIZE_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>MAX_REQUEST_SIZE_CONFIG</h4> +<pre>public static final java.lang.String MAX_REQUEST_SIZE_CONFIG</pre> +<div class="block"><code>max.request.size</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.MAX_REQUEST_SIZE_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="RECONNECT_BACKOFF_MS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RECONNECT_BACKOFF_MS_CONFIG</h4> +<pre>public static final java.lang.String RECONNECT_BACKOFF_MS_CONFIG</pre> +<div class="block"><code>reconnect.backoff.ms</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.RECONNECT_BACKOFF_MS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="MAX_BLOCK_MS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>MAX_BLOCK_MS_CONFIG</h4> +<pre>public static final java.lang.String MAX_BLOCK_MS_CONFIG</pre> +<div class="block"><code>max.block.ms</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.MAX_BLOCK_MS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="BLOCK_ON_BUFFER_FULL_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BLOCK_ON_BUFFER_FULL_CONFIG</h4> +<pre>@Deprecated +public static final java.lang.String BLOCK_ON_BUFFER_FULL_CONFIG</pre> +<div class="block"><span class="strong">Deprecated.</span> <i>This config will be removed in a future release. Also, the <a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#METADATA_FETCH_TIMEOUT_CONFIG"><code>METADATA_FETCH_TIMEOUT_CONFIG</code></a> is no longer honored when this property is set to true.</i></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.BLOCK_ON_BUFFER_FULL_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="BUFFER_MEMORY_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BUFFER_MEMORY_CONFIG</h4> +<pre>public static final java.lang.String BUFFER_MEMORY_CONFIG</pre> +<div class="block"><code>buffer.memory</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.BUFFER_MEMORY_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="RETRIES_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RETRIES_CONFIG</h4> +<pre>public static final java.lang.String RETRIES_CONFIG</pre> +<div class="block"><code>retries</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.RETRIES_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="RETRY_BACKOFF_MS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RETRY_BACKOFF_MS_CONFIG</h4> +<pre>public static final java.lang.String RETRY_BACKOFF_MS_CONFIG</pre> +<div class="block"><code>retry.backoff.ms</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.RETRY_BACKOFF_MS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="COMPRESSION_TYPE_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>COMPRESSION_TYPE_CONFIG</h4> +<pre>public static final java.lang.String COMPRESSION_TYPE_CONFIG</pre> +<div class="block"><code>compression.type</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.COMPRESSION_TYPE_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="METRICS_SAMPLE_WINDOW_MS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>METRICS_SAMPLE_WINDOW_MS_CONFIG</h4> +<pre>public static final java.lang.String METRICS_SAMPLE_WINDOW_MS_CONFIG</pre> +<div class="block"><code>metrics.sample.window.ms</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.METRICS_SAMPLE_WINDOW_MS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="METRICS_NUM_SAMPLES_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>METRICS_NUM_SAMPLES_CONFIG</h4> +<pre>public static final java.lang.String METRICS_NUM_SAMPLES_CONFIG</pre> +<div class="block"><code>metrics.num.samples</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.METRICS_NUM_SAMPLES_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="METRIC_REPORTER_CLASSES_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>METRIC_REPORTER_CLASSES_CONFIG</h4> +<pre>public static final java.lang.String METRIC_REPORTER_CLASSES_CONFIG</pre> +<div class="block"><code>metric.reporters</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.METRIC_REPORTER_CLASSES_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION</h4> +<pre>public static final java.lang.String MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION</pre> +<div class="block"><code>max.in.flight.requests.per.connection</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="KEY_SERIALIZER_CLASS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>KEY_SERIALIZER_CLASS_CONFIG</h4> +<pre>public static final java.lang.String KEY_SERIALIZER_CLASS_CONFIG</pre> +<div class="block"><code>key.serializer</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="KEY_SERIALIZER_CLASS_DOC"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>KEY_SERIALIZER_CLASS_DOC</h4> +<pre>public static final java.lang.String KEY_SERIALIZER_CLASS_DOC</pre> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.KEY_SERIALIZER_CLASS_DOC">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="VALUE_SERIALIZER_CLASS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>VALUE_SERIALIZER_CLASS_CONFIG</h4> +<pre>public static final java.lang.String VALUE_SERIALIZER_CLASS_CONFIG</pre> +<div class="block"><code>value.serializer</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="VALUE_SERIALIZER_CLASS_DOC"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>VALUE_SERIALIZER_CLASS_DOC</h4> +<pre>public static final java.lang.String VALUE_SERIALIZER_CLASS_DOC</pre> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.VALUE_SERIALIZER_CLASS_DOC">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="CONNECTIONS_MAX_IDLE_MS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>CONNECTIONS_MAX_IDLE_MS_CONFIG</h4> +<pre>public static final java.lang.String CONNECTIONS_MAX_IDLE_MS_CONFIG</pre> +<div class="block"><code>connections.max.idle.ms</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.CONNECTIONS_MAX_IDLE_MS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="PARTITIONER_CLASS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>PARTITIONER_CLASS_CONFIG</h4> +<pre>public static final java.lang.String PARTITIONER_CLASS_CONFIG</pre> +<div class="block"><code>partitioner.class</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.PARTITIONER_CLASS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="REQUEST_TIMEOUT_MS_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>REQUEST_TIMEOUT_MS_CONFIG</h4> +<pre>public static final java.lang.String REQUEST_TIMEOUT_MS_CONFIG</pre> +<div class="block"><code>request.timeout.ms</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.REQUEST_TIMEOUT_MS_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="INTERCEPTOR_CLASSES_CONFIG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>INTERCEPTOR_CLASSES_CONFIG</h4> +<pre>public static final java.lang.String INTERCEPTOR_CLASSES_CONFIG</pre> +<div class="block"><code>interceptor.classes</code></div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.INTERCEPTOR_CLASSES_CONFIG">Constant Field Values</a></dd></dl> +</li> +</ul> +<a name="INTERCEPTOR_CLASSES_DOC"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>INTERCEPTOR_CLASSES_DOC</h4> +<pre>public static final java.lang.String INTERCEPTOR_CLASSES_DOC</pre> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.kafka.clients.producer.ProducerConfig.INTERCEPTOR_CLASSES_DOC">Constant Field Values</a></dd></dl> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method_detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="addSerializerToConfig(java.util.Map, org.apache.kafka.common.serialization.Serializer, org.apache.kafka.common.serialization.Serializer)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>addSerializerToConfig</h4> +<pre>public static java.util.Map<java.lang.String,java.lang.Object> addSerializerToConfig(java.util.Map<java.lang.String,java.lang.Object> configs, + <a href="../../../../../org/apache/kafka/common/serialization/Serializer.html" title="interface in org.apache.kafka.common.serialization">Serializer</a><?> keySerializer, + <a href="../../../../../org/apache/kafka/common/serialization/Serializer.html" title="interface in org.apache.kafka.common.serialization">Serializer</a><?> valueSerializer)</pre> +</li> +</ul> +<a name="addSerializerToConfig(java.util.Properties, org.apache.kafka.common.serialization.Serializer, org.apache.kafka.common.serialization.Serializer)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>addSerializerToConfig</h4> +<pre>public static java.util.Properties addSerializerToConfig(java.util.Properties properties, + <a href="../../../../../org/apache/kafka/common/serialization/Serializer.html" title="interface in org.apache.kafka.common.serialization">Serializer</a><?> keySerializer, + <a href="../../../../../org/apache/kafka/common/serialization/Serializer.html" title="interface in org.apache.kafka.common.serialization">Serializer</a><?> valueSerializer)</pre> +</li> +</ul> +<a name="main(java.lang.String[])"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>main</h4> +<pre>public static void main(java.lang.String[] args)</pre> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar_bottom"> +<!-- --> +</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/kafka/clients/producer/Producer.html" title="interface in org.apache.kafka.clients.producer"><span class="strong">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="interface in org.apache.kafka.clients.producer"><span class="strong">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/kafka/clients/producer/ProducerConfig.html" target="_top">Frames</a></li> +<li><a href="ProducerConfig.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li><a href="#field_summary">Field</a> | </li> +<li>Constr | </li> +<li><a href="#method_summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field_detail">Field</a> | </li> +<li>Constr | </li> +<li><a href="#method_detail">Method</a></li> +</ul> +</div> +<a name="skip-navbar_bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +</body> +</html>
http://git-wip-us.apache.org/repos/asf/kafka-site/blob/b91f7909/0100/javadoc/org/apache/kafka/clients/producer/ProducerInterceptor.html ---------------------------------------------------------------------- diff --git a/0100/javadoc/org/apache/kafka/clients/producer/ProducerInterceptor.html b/0100/javadoc/org/apache/kafka/clients/producer/ProducerInterceptor.html new file mode 100644 index 0000000..78384c0 --- /dev/null +++ b/0100/javadoc/org/apache/kafka/clients/producer/ProducerInterceptor.html @@ -0,0 +1,308 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc (version 1.7.0_79) on Tue May 17 21:36:38 PDT 2016 --> +<title>ProducerInterceptor (clients 0.10.0.0 API)</title> +<meta name="date" content="2016-05-17"> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +</head> +<body> +<script type="text/javascript"><!-- + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="ProducerInterceptor (clients 0.10.0.0 API)"; + } +//--> +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar_top"> +<!-- --> +</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html" title="class in org.apache.kafka.clients.producer"><span class="strong">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="class in org.apache.kafka.clients.producer"><span class="strong">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/kafka/clients/producer/ProducerInterceptor.html" target="_top">Frames</a></li> +<li><a href="ProducerInterceptor.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method_summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method_detail">Method</a></li> +</ul> +</div> +<a name="skip-navbar_top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.kafka.clients.producer</div> +<h2 title="Interface ProducerInterceptor" class="title">Interface ProducerInterceptor<K,V></h2> +</div> +<div class="contentContainer"> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Superinterfaces:</dt> +<dd><a href="../../../../../org/apache/kafka/common/Configurable.html" title="interface in org.apache.kafka.common">Configurable</a></dd> +</dl> +<hr> +<br> +<pre>public interface <span class="strong">ProducerInterceptor<K,V></span> +extends <a href="../../../../../org/apache/kafka/common/Configurable.html" title="interface in org.apache.kafka.common">Configurable</a></pre> +<div class="block">A plugin interface that allows you to intercept (and possibly mutate) the records received by the producer before + they are published to the Kafka cluster. + <p> + This class will get producer config properties via <code>configure()</code> method, including clientId assigned + by KafkaProducer if not specified in the producer config. The interceptor implementation needs to be aware that it will be + sharing producer config namespace with other interceptors and serializers, and ensure that there are no conflicts. + <p> + Exceptions thrown by ProducerInterceptor methods will be caught, logged, but not propagated further. As a result, if + the user configures the interceptor with the wrong key and value type parameters, the producer will not throw an exception, + just log the errors. + <p> + ProducerInterceptor callbacks may be called from multiple threads. Interceptor implementation must ensure thread-safety, if needed.</div> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method_summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span>Methods</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html#close()">close</a></strong>()</code> +<div class="block">This is called when interceptor is closed</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html#onAcknowledgement(org.apache.kafka.clients.producer.RecordMetadata,%20java.lang.Exception)">onAcknowledgement</a></strong>(<a href="../../../../../org/apache/kafka/clients/producer/RecordMetadata.html" title="class in org.apache.kafka.clients.producer">RecordMetadata</a> metadata, + java.lang.Exception exception)</code> +<div class="block">This method is called when the record sent to the server has been acknowledged, or when sending the record fails before + it gets sent to the server.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="class in org.apache.kafka.clients.producer">ProducerRecord</a><<a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="type parameter in ProducerInterceptor">K</a>,<a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="type parameter in ProducerInterceptor">V</a>></code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html#onSend(org.apache.kafka.clients.producer.ProducerRecord)">onSend</a></strong>(<a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="class in org.apache.kafka.clients.producer">ProducerRecord</a><<a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="type parameter in ProducerInterceptor">K</a>,<a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="type parameter in ProducerInterceptor">V</a>> record)</code> +<div class="block">This is called from <a href="../../../../../org/apache/kafka/clients/producer/KafkaProducer.html#send(org.apache.kafka.clients.producer.ProducerRecord)"><code>KafkaProducer.send(ProducerRecord)</code></a> and + <a href="../../../../../org/apache/kafka/clients/producer/KafkaProducer.html#send(org.apache.kafka.clients.producer.ProducerRecord,%20org.apache.kafka.clients.producer.Callback)"><code>KafkaProducer.send(ProducerRecord, Callback)</code></a> methods, before key and value + get serialized and partition is assigned (if partition is not specified in ProducerRecord).</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods_inherited_from_class_org.apache.kafka.common.Configurable"> +<!-- --> +</a> +<h3>Methods inherited from interface org.apache.kafka.common.<a href="../../../../../org/apache/kafka/common/Configurable.html" title="interface in org.apache.kafka.common">Configurable</a></h3> +<code><a href="../../../../../org/apache/kafka/common/Configurable.html#configure(java.util.Map)">configure</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method_detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="onSend(org.apache.kafka.clients.producer.ProducerRecord)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>onSend</h4> +<pre><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="class in org.apache.kafka.clients.producer">ProducerRecord</a><<a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="type parameter in ProducerInterceptor">K</a>,<a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="type parameter in ProducerInterceptor">V</a>> onSend(<a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="class in org.apache.kafka.clients.producer">ProducerRecord</a><<a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="type parameter in ProducerInterceptor">K</a>,<a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="type parameter in ProducerInterceptor">V</a>> record)</pre> +<div class="block">This is called from <a href="../../../../../org/apache/kafka/clients/producer/KafkaProducer.html#send(org.apache.kafka.clients.producer.ProducerRecord)"><code>KafkaProducer.send(ProducerRecord)</code></a> and + <a href="../../../../../org/apache/kafka/clients/producer/KafkaProducer.html#send(org.apache.kafka.clients.producer.ProducerRecord,%20org.apache.kafka.clients.producer.Callback)"><code>KafkaProducer.send(ProducerRecord, Callback)</code></a> methods, before key and value + get serialized and partition is assigned (if partition is not specified in ProducerRecord). + <p> + This method is allowed to modify the record, in which case, the new record will be returned. The implication of modifying + key/value is that partition assignment (if not specified in ProducerRecord) will be done based on modified key/value, + not key/value from the client. Consequently, key and value transformation done in onSend() needs to be consistent: + same key and value should mutate to the same (modified) key and value. Otherwise, log compaction would not work + as expected. + <p> + Similarly, it is up to interceptor implementation to ensure that correct topic/partition is returned in ProducerRecord. + Most often, it should be the same topic/partition from 'record'. + <p> + Any exception thrown by this method will be caught by the caller and logged, but not propagated further. + <p> + Since the producer may run multiple interceptors, a particular interceptor's onSend() callback will be called in the order + specified by <a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html#INTERCEPTOR_CLASSES_CONFIG"><code>ProducerConfig.INTERCEPTOR_CLASSES_CONFIG</code></a>. The first interceptor + in the list gets the record passed from the client, the following interceptor will be passed the record returned by the + previous interceptor, and so on. Since interceptors are allowed to modify records, interceptors may potentially get + the record already modified by other interceptors. However, building a pipeline of mutable interceptors that depend on the output + of the previous interceptor is discouraged, because of potential side-effects caused by interceptors potentially failing to + modify the record and throwing an exception. If one of the interceptors in the list throws an exception from onSend(), the exception + is caught, logged, and the next interceptor is called with the record returned by the last successful interceptor in the list, + or otherwise the client.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>record</code> - the record from client or the record returned by the previous interceptor in the chain of interceptors.</dd> +<dt><span class="strong">Returns:</span></dt><dd>producer record to send to topic/partition</dd></dl> +</li> +</ul> +<a name="onAcknowledgement(org.apache.kafka.clients.producer.RecordMetadata, java.lang.Exception)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>onAcknowledgement</h4> +<pre>void onAcknowledgement(<a href="../../../../../org/apache/kafka/clients/producer/RecordMetadata.html" title="class in org.apache.kafka.clients.producer">RecordMetadata</a> metadata, + java.lang.Exception exception)</pre> +<div class="block">This method is called when the record sent to the server has been acknowledged, or when sending the record fails before + it gets sent to the server. + <p> + This method is generally called just before the user callback is called, and in additional cases when <code>KafkaProducer.send()</code> + throws an exception. + <p> + Any exception thrown by this method will be ignored by the caller. + <p> + This method will generally execute in the background I/O thread, so the implementation should be reasonably fast. + Otherwise, sending of messages from other threads could be delayed.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>metadata</code> - The metadata for the record that was sent (i.e. the partition and offset). + If an error occurred, metadata will contain only valid topic and maybe + partition. If partition is not given in ProducerRecord and an error occurs + before partition gets assigned, then partition will be set to RecordMetadata.NO_PARTITION. + The metadata may be null if the client passed null record to + <a href="../../../../../org/apache/kafka/clients/producer/KafkaProducer.html#send(org.apache.kafka.clients.producer.ProducerRecord)"><code>KafkaProducer.send(ProducerRecord)</code></a>.</dd><dd><code>exception</code> - The exception thrown during processing of this record. Null if no error occurred.</dd></dl> +</li> +</ul> +<a name="close()"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>close</h4> +<pre>void close()</pre> +<div class="block">This is called when interceptor is closed</div> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar_bottom"> +<!-- --> +</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/kafka/clients/producer/ProducerConfig.html" title="class in org.apache.kafka.clients.producer"><span class="strong">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="class in org.apache.kafka.clients.producer"><span class="strong">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/kafka/clients/producer/ProducerInterceptor.html" target="_top">Frames</a></li> +<li><a href="ProducerInterceptor.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method_summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method_detail">Method</a></li> +</ul> +</div> +<a name="skip-navbar_bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +</body> +</html> http://git-wip-us.apache.org/repos/asf/kafka-site/blob/b91f7909/0100/javadoc/org/apache/kafka/clients/producer/ProducerRecord.html ---------------------------------------------------------------------- diff --git a/0100/javadoc/org/apache/kafka/clients/producer/ProducerRecord.html b/0100/javadoc/org/apache/kafka/clients/producer/ProducerRecord.html new file mode 100644 index 0000000..a7c8517 --- /dev/null +++ b/0100/javadoc/org/apache/kafka/clients/producer/ProducerRecord.html @@ -0,0 +1,464 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc (version 1.7.0_79) on Tue May 17 21:36:38 PDT 2016 --> +<title>ProducerRecord (clients 0.10.0.0 API)</title> +<meta name="date" content="2016-05-17"> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +</head> +<body> +<script type="text/javascript"><!-- + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="ProducerRecord (clients 0.10.0.0 API)"; + } +//--> +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar_top"> +<!-- --> +</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="interface in org.apache.kafka.clients.producer"><span class="strong">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/kafka/clients/producer/RecordMetadata.html" title="class in org.apache.kafka.clients.producer"><span class="strong">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/kafka/clients/producer/ProducerRecord.html" target="_top">Frames</a></li> +<li><a href="ProducerRecord.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li><a href="#constructor_summary">Constr</a> | </li> +<li><a href="#method_summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li><a href="#constructor_detail">Constr</a> | </li> +<li><a href="#method_detail">Method</a></li> +</ul> +</div> +<a name="skip-navbar_top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.kafka.clients.producer</div> +<h2 title="Class ProducerRecord" class="title">Class ProducerRecord<K,V></h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li>java.lang.Object</li> +<li> +<ul class="inheritance"> +<li>org.apache.kafka.clients.producer.ProducerRecord<K,V></li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<hr> +<br> +<pre>public final class <span class="strong">ProducerRecord<K,V></span> +extends java.lang.Object</pre> +<div class="block">A key/value pair to be sent to Kafka. This consists of a topic name to which the record is being sent, an optional + partition number, and an optional key and value. + <p> + If a valid partition number is specified that partition will be used when sending the record. If no partition is + specified but a key is present a partition will be chosen using a hash of the key. If neither key nor partition is + present a partition will be assigned in a round-robin fashion. + <p> + The record also has an associated timestamp. If the user did not provide a timestamp, the producer will stamp the + record with its current time. The timestamp eventually used by Kafka depends on the timestamp type configured for + the topic. + <li> + If the topic is configured to use <code>CreateTime</code>, + the timestamp in the producer record will be used by the broker. + </li> + <li> + If the topic is configured to use <code>LogAppendTime</code>, + the timestamp in the producer record will be overwritten by the broker with the broker local time when it appends the + message to its log. + </li> + <p> + In either of the cases above, the timestamp that has actually been used will be returned to user in + <a href="../../../../../org/apache/kafka/clients/producer/RecordMetadata.html" title="class in org.apache.kafka.clients.producer"><code>RecordMetadata</code></a></div> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ======== CONSTRUCTOR SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor_summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#ProducerRecord(java.lang.String,%20java.lang.Integer,%20K,%20V)">ProducerRecord</a></strong>(java.lang.String topic, + java.lang.Integer partition, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">K</a> key, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a> value)</code> +<div class="block">Creates a record to be sent to a specified topic and partition</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#ProducerRecord(java.lang.String,%20java.lang.Integer,%20java.lang.Long,%20K,%20V)">ProducerRecord</a></strong>(java.lang.String topic, + java.lang.Integer partition, + java.lang.Long timestamp, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">K</a> key, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a> value)</code> +<div class="block">Creates a record with a specified timestamp to be sent to a specified topic and partition</div> +</td> +</tr> +<tr class="altColor"> +<td class="colOne"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#ProducerRecord(java.lang.String,%20K,%20V)">ProducerRecord</a></strong>(java.lang.String topic, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">K</a> key, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a> value)</code> +<div class="block">Create a record to be sent to Kafka</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#ProducerRecord(java.lang.String,%20V)">ProducerRecord</a></strong>(java.lang.String topic, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a> value)</code> +<div class="block">Create a record with no key</div> +</td> +</tr> +</table> +</li> +</ul> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method_summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span>Methods</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object o)</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#hashCode()">hashCode</a></strong>()</code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">K</a></code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#key()">key</a></strong>()</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.lang.Integer</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#partition()">partition</a></strong>()</code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>java.lang.Long</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#timestamp()">timestamp</a></strong>()</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#topic()">topic</a></strong>()</code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>java.lang.String</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#toString()">toString</a></strong>()</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a></code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html#value()">value</a></strong>()</code> </td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.Object</h3> +<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor_detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="ProducerRecord(java.lang.String,java.lang.Integer,java.lang.Long,java.lang.Object,java.lang.Object)"> +<!-- --> +</a><a name="ProducerRecord(java.lang.String, java.lang.Integer, java.lang.Long, K, V)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ProducerRecord</h4> +<pre>public ProducerRecord(java.lang.String topic, + java.lang.Integer partition, + java.lang.Long timestamp, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">K</a> key, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a> value)</pre> +<div class="block">Creates a record with a specified timestamp to be sent to a specified topic and partition</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>topic</code> - The topic the record will be appended to</dd><dd><code>partition</code> - The partition to which the record should be sent</dd><dd><code>timestamp</code> - The timestamp of the record</dd><dd><code>key</code> - The key that will be included in the record</dd><dd><code>value</code> - The record contents</dd></dl> +</li> +</ul> +<a name="ProducerRecord(java.lang.String,java.lang.Integer,java.lang.Object,java.lang.Object)"> +<!-- --> +</a><a name="ProducerRecord(java.lang.String, java.lang.Integer, K, V)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ProducerRecord</h4> +<pre>public ProducerRecord(java.lang.String topic, + java.lang.Integer partition, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">K</a> key, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a> value)</pre> +<div class="block">Creates a record to be sent to a specified topic and partition</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>topic</code> - The topic the record will be appended to</dd><dd><code>partition</code> - The partition to which the record should be sent</dd><dd><code>key</code> - The key that will be included in the record</dd><dd><code>value</code> - The record contents</dd></dl> +</li> +</ul> +<a name="ProducerRecord(java.lang.String,java.lang.Object,java.lang.Object)"> +<!-- --> +</a><a name="ProducerRecord(java.lang.String, K, V)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ProducerRecord</h4> +<pre>public ProducerRecord(java.lang.String topic, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">K</a> key, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a> value)</pre> +<div class="block">Create a record to be sent to Kafka</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>topic</code> - The topic the record will be appended to</dd><dd><code>key</code> - The key that will be included in the record</dd><dd><code>value</code> - The record contents</dd></dl> +</li> +</ul> +<a name="ProducerRecord(java.lang.String,java.lang.Object)"> +<!-- --> +</a><a name="ProducerRecord(java.lang.String, V)"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>ProducerRecord</h4> +<pre>public ProducerRecord(java.lang.String topic, + <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a> value)</pre> +<div class="block">Create a record with no key</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>topic</code> - The topic this record should be sent to</dd><dd><code>value</code> - The record contents</dd></dl> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method_detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="topic()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>topic</h4> +<pre>public java.lang.String topic()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>The topic this record is being sent to</dd></dl> +</li> +</ul> +<a name="key()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>key</h4> +<pre>public <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">K</a> key()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>The key (or null if no key is specified)</dd></dl> +</li> +</ul> +<a name="value()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>value</h4> +<pre>public <a href="../../../../../org/apache/kafka/clients/producer/ProducerRecord.html" title="type parameter in ProducerRecord">V</a> value()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>The value</dd></dl> +</li> +</ul> +<a name="timestamp()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>timestamp</h4> +<pre>public java.lang.Long timestamp()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>The timestamp</dd></dl> +</li> +</ul> +<a name="partition()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>partition</h4> +<pre>public java.lang.Integer partition()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>The partition to which the record will be sent (or null if no partition was specified)</dd></dl> +</li> +</ul> +<a name="toString()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>toString</h4> +<pre>public java.lang.String toString()</pre> +<dl> +<dt><strong>Overrides:</strong></dt> +<dd><code>toString</code> in class <code>java.lang.Object</code></dd> +</dl> +</li> +</ul> +<a name="equals(java.lang.Object)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>equals</h4> +<pre>public boolean equals(java.lang.Object o)</pre> +<dl> +<dt><strong>Overrides:</strong></dt> +<dd><code>equals</code> in class <code>java.lang.Object</code></dd> +</dl> +</li> +</ul> +<a name="hashCode()"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>hashCode</h4> +<pre>public int hashCode()</pre> +<dl> +<dt><strong>Overrides:</strong></dt> +<dd><code>hashCode</code> in class <code>java.lang.Object</code></dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar_bottom"> +<!-- --> +</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/kafka/clients/producer/ProducerInterceptor.html" title="interface in org.apache.kafka.clients.producer"><span class="strong">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/kafka/clients/producer/RecordMetadata.html" title="class in org.apache.kafka.clients.producer"><span class="strong">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/kafka/clients/producer/ProducerRecord.html" target="_top">Frames</a></li> +<li><a href="ProducerRecord.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li><a href="#constructor_summary">Constr</a> | </li> +<li><a href="#method_summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li><a href="#constructor_detail">Constr</a> | </li> +<li><a href="#method_detail">Method</a></li> +</ul> +</div> +<a name="skip-navbar_bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +</body> +</html>