mirror of https://github.com/apache/kafka.git
KAFKA-18348 Remove the deprecated MockConsumer#setException (#18317)
Reviewers: TengYao Chi <kitingiao@gmail.com>, TaiJuWu <tjwu1217@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
2e3b4cb957
commit
6139840e98
|
@ -314,14 +314,6 @@ public class MockConsumer<K, V> implements Consumer<K, V> {
|
||||||
recs.add(record);
|
recs.add(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #setPollException(KafkaException)} instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public synchronized void setException(KafkaException exception) {
|
|
||||||
setPollException(exception);
|
|
||||||
}
|
|
||||||
|
|
||||||
public synchronized void setPollException(KafkaException exception) {
|
public synchronized void setPollException(KafkaException exception) {
|
||||||
this.pollException = exception;
|
this.pollException = exception;
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,6 +188,10 @@
|
||||||
<li>The <code>committed(TopicPartition)</code> and <code>committed(TopicPartition, Duration)</code> methods were removed from the consumer.
|
<li>The <code>committed(TopicPartition)</code> and <code>committed(TopicPartition, Duration)</code> methods were removed from the consumer.
|
||||||
Please use <code>committed(Set<TopicPartition>)</code> and <code>committed(Set<TopicPartition>, Duration)</code> instead.
|
Please use <code>committed(Set<TopicPartition>)</code> and <code>committed(Set<TopicPartition>, Duration)</code> instead.
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
The <code>setException(KafkaException)</code> method was removed from the <code>org.apache.kafka.clients.consumer.MockConsumer</code>.
|
||||||
|
Please use <code>setPollException(KafkaException)</code> instead.
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><b>Producer</b>
|
<li><b>Producer</b>
|
||||||
|
|
Loading…
Reference in New Issue