RecordCollector
is the contract of record collectors that can send a record to a topic.
Method | Description |
---|---|
|
void close() Closes the Used when…FIXME |
|
void flush() Flushes the Used exclusively when |
|
|
|
Map<TopicPartition, Long> offsets() Used exclusively when |
|
<K, V> void send(
String topic,
K key,
V value,
Headers headers,
Integer partition,
Long timestamp,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
<K, V> void send(
String topic,
K key,
V value,
Headers headers,
Long timestamp,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
StreamPartitioner<? super K, ? super V> partitioner) Sends a record to a topic Used when:
|
RecordCollector | Description |
---|---|
RecordCollector
defines a Supplier
that is used to access the RecordCollector.
RecordCollector recordCollector()
Note
|
|