diff --git a/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java b/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java index 792dc1bd..b13f4bdf 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java +++ b/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java @@ -89,7 +89,7 @@ public class KafkaAdmin implements ApplicationContextAware, SmartInitializingSin } /** - * Set the close timeout in seconds. Defaults to 10 seconds. + * Set the close timeout in seconds. Defaults to {@value #DEFAULT_CLOSE_TIMEOUT} seconds. * @param closeTimeout the timeout. */ public void setCloseTimeout(int closeTimeout) { @@ -97,7 +97,7 @@ public class KafkaAdmin implements ApplicationContextAware, SmartInitializingSin } /** - * Set the operation timeout in seconds. Defaults to 30 seconds. + * Set the operation timeout in seconds. Defaults to {@value #DEFAULT_OPERATION_TIMEOUT} seconds. * @param operationTimeout the timeout. */ public void setOperationTimeout(int operationTimeout) { @@ -250,7 +250,7 @@ public class KafkaAdmin implements ApplicationContextAware, SmartInitializingSin logger.error("Interrupted while waiting for partition creation results", e); } catch (TimeoutException e) { - throw new KafkaException("Timed out waiting for create topics results", e); + throw new KafkaException("Timed out waiting for create partitions results", e); } catch (ExecutionException e) { logger.error("Failed to create partitions", e.getCause()); diff --git a/spring-kafka/src/main/java/org/springframework/kafka/core/StreamsBuilderFactoryBean.java b/spring-kafka/src/main/java/org/springframework/kafka/core/StreamsBuilderFactoryBean.java index 70715695..10e7548c 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/core/StreamsBuilderFactoryBean.java +++ b/spring-kafka/src/main/java/org/springframework/kafka/core/StreamsBuilderFactoryBean.java @@ -86,7 +86,7 @@ public class StreamsBuilderFactoryBean extends AbstractFactoryBean cf = mock(ConsumerFactory.class); Consumer consumer = mock(Consumer.class); given(cf.createConsumer(isNull(), isNull())).willReturn(consumer); diff --git a/src/reference/asciidoc/testing.adoc b/src/reference/asciidoc/testing.adoc index b30705aa..bc126c2c 100644 --- a/src/reference/asciidoc/testing.adoc +++ b/src/reference/asciidoc/testing.adoc @@ -160,7 +160,7 @@ The `brokerProperties` and `brokerPropertiesLocation` attributes of `@EmbeddedKa "auto.create.topics.enable=${kafka.broker.topics-enable:true}" } brokerPropertiesLocation = "classpath:/broker.properties") ---- -In th example above, the property placeholders `${kafka.broker.logs-dir}` and `${kafka.broker.port}` are resolved from the Spring `Environment`. +In the example above, the property placeholders `${kafka.broker.logs-dir}` and `${kafka.broker.port}` are resolved from the Spring `Environment`. In addition the broker properties are loaded from the `broker.properties` classpath resource specified by the `brokerPropertiesLocation`. Property placeholders are resolved for the `brokerPropertiesLocation` URL and for any property placeholders found in the resource. Properties defined by `brokerProperties` override properties found in `brokerPropertiesLocation`.