GH-2511: Fix code samples
This commit is contained in:
committed by
Gary Russell
parent
481fcf8938
commit
f69c2571e1
@@ -353,7 +353,7 @@ public RetryTopicConfiguration myRetryTopic(KafkaTemplate<String, MyPojo> templa
|
||||
.newInstance()
|
||||
.fixedBackoff(3000)
|
||||
.maxAttempts(4)
|
||||
.build();
|
||||
.create(template);
|
||||
}
|
||||
----
|
||||
====
|
||||
@@ -369,7 +369,7 @@ public RetryTopicConfiguration myRetryTopic(KafkaTemplate<String, MyPojo> templa
|
||||
.newInstance()
|
||||
.customBackOff(new MyCustomBackOffPolicy())
|
||||
.maxAttempts(5)
|
||||
.build();
|
||||
.create(template);
|
||||
}
|
||||
----
|
||||
====
|
||||
@@ -407,7 +407,7 @@ public RetryTopicConfiguration myRetryTopic(KafkaTemplate<String, MyPojo> templa
|
||||
.fixedBackoff(3000)
|
||||
.maxAttempts(5)
|
||||
.useSingleTopicForFixedDelays()
|
||||
.build();
|
||||
.create(template);
|
||||
}
|
||||
----
|
||||
====
|
||||
@@ -439,7 +439,7 @@ public RetryTopicConfiguration myRetryTopic(KafkaTemplate<String, MyPojo> templa
|
||||
.newInstance()
|
||||
.fixedBackoff(2000)
|
||||
.timeoutAfter(5000)
|
||||
.build();
|
||||
.create(template);
|
||||
}
|
||||
----
|
||||
====
|
||||
|
||||
Reference in New Issue
Block a user