|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2021 the original author or authors.
|
|
|
|
* Copyright 2012-2022 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -389,6 +389,7 @@ class KafkaAutoConfigurationTests {
|
|
|
|
"spring.kafka.listener.concurrency=3", "spring.kafka.listener.poll-timeout=2000",
|
|
|
|
"spring.kafka.listener.concurrency=3", "spring.kafka.listener.poll-timeout=2000",
|
|
|
|
"spring.kafka.listener.no-poll-threshold=2.5", "spring.kafka.listener.type=batch",
|
|
|
|
"spring.kafka.listener.no-poll-threshold=2.5", "spring.kafka.listener.type=batch",
|
|
|
|
"spring.kafka.listener.idle-between-polls=1s", "spring.kafka.listener.idle-event-interval=1s",
|
|
|
|
"spring.kafka.listener.idle-between-polls=1s", "spring.kafka.listener.idle-event-interval=1s",
|
|
|
|
|
|
|
|
"spring.kafka.listener.idle-partition-event-interval=1s",
|
|
|
|
"spring.kafka.listener.monitor-interval=45", "spring.kafka.listener.log-container-config=true",
|
|
|
|
"spring.kafka.listener.monitor-interval=45", "spring.kafka.listener.log-container-config=true",
|
|
|
|
"spring.kafka.listener.only-log-record-metadata=true",
|
|
|
|
"spring.kafka.listener.only-log-record-metadata=true",
|
|
|
|
"spring.kafka.listener.missing-topics-fatal=true", "spring.kafka.jaas.enabled=true",
|
|
|
|
"spring.kafka.listener.missing-topics-fatal=true", "spring.kafka.jaas.enabled=true",
|
|
|
@ -415,6 +416,7 @@ class KafkaAutoConfigurationTests {
|
|
|
|
assertThat(containerProperties.getNoPollThreshold()).isEqualTo(2.5f);
|
|
|
|
assertThat(containerProperties.getNoPollThreshold()).isEqualTo(2.5f);
|
|
|
|
assertThat(containerProperties.getIdleBetweenPolls()).isEqualTo(1000L);
|
|
|
|
assertThat(containerProperties.getIdleBetweenPolls()).isEqualTo(1000L);
|
|
|
|
assertThat(containerProperties.getIdleEventInterval()).isEqualTo(1000L);
|
|
|
|
assertThat(containerProperties.getIdleEventInterval()).isEqualTo(1000L);
|
|
|
|
|
|
|
|
assertThat(containerProperties.getIdlePartitionEventInterval()).isEqualTo(1000L);
|
|
|
|
assertThat(containerProperties.getMonitorInterval()).isEqualTo(45);
|
|
|
|
assertThat(containerProperties.getMonitorInterval()).isEqualTo(45);
|
|
|
|
assertThat(containerProperties.isLogContainerConfig()).isTrue();
|
|
|
|
assertThat(containerProperties.isLogContainerConfig()).isTrue();
|
|
|
|
assertThat(containerProperties.isOnlyLogRecordMetadata()).isTrue();
|
|
|
|
assertThat(containerProperties.isOnlyLogRecordMetadata()).isTrue();
|
|
|
|