Doc polishing, remove connectionFactory
(cherry picked from commit 2502a8fe1c)
This commit is contained in:
committed by
Artem Bilan
parent
16f3d8c99d
commit
aa400fa4b8
@@ -1265,12 +1265,12 @@ To configure this feature, set the `idleEventInterval` on the container:
|
||||
[source, java]
|
||||
----
|
||||
@Bean
|
||||
public KafKaMessageListenerContainer(ConnectionFactory connectionFactory) {
|
||||
public KafkaMessageListenerContainer(ConsumerFactory<String, String> consumerFactory) {
|
||||
ContainerProperties containerProps = new ContainerProperties("topic1", "topic2");
|
||||
...
|
||||
containerProps.setIdleEventInterval(60000L);
|
||||
...
|
||||
KafKaMessageListenerContainer<String, String> container = new KafKaMessageListenerContainer<>(...);
|
||||
KafkaMessageListenerContainer<String, String> container = new KafKaMessageListenerContainer<>(...);
|
||||
return container;
|
||||
}
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user