Skip to content

Commit

Permalink
apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenchickenlove committed Apr 23, 2024
1 parent e6612cf commit 974231d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,14 @@ public void setReplyTemplate(KafkaTemplate<?, ?> replyTemplate) {
@SuppressWarnings("unchecked")
public void setRecordFilterStrategy(RecordFilterStrategy<? super K, ? super V> recordFilterStrategy) {
this.recordFilterStrategy = (RecordFilterStrategy<K, V>) recordFilterStrategy;
setAckDiscarded(true);
}

protected boolean isAckDiscarded() {
return this.ackDiscarded;
}

/**
* Set to true if the {@link #setRecordFilterStrategy(RecordFilterStrategy)} is in use.
* Set to true if the {@link #setRecordFilterStrategy(RecordFilterStrategy)} should ack discarded messages.
* @param ackDiscarded the ackDiscarded.
*/
public void setAckDiscarded(boolean ackDiscarded) {
Expand Down

0 comments on commit 974231d

Please sign in to comment.