Skip to content

Commit 185e982

Browse files
izeyeartembilan
authored andcommitted
Polish
1 parent 1043cb1 commit 185e982

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ public void setApplicationContext(ApplicationContext applicationContext) throws
8989
}
9090

9191
/**
92-
* Set the close timeout in seconds. Defaults to 10 seconds.
92+
* Set the close timeout in seconds. Defaults to {@value #DEFAULT_CLOSE_TIMEOUT} seconds.
9393
* @param closeTimeout the timeout.
9494
*/
9595
public void setCloseTimeout(int closeTimeout) {
9696
this.closeTimeout = closeTimeout;
9797
}
9898

9999
/**
100-
* Set the operation timeout in seconds. Defaults to 30 seconds.
100+
* Set the operation timeout in seconds. Defaults to {@value #DEFAULT_OPERATION_TIMEOUT} seconds.
101101
* @param operationTimeout the timeout.
102102
*/
103103
public void setOperationTimeout(int operationTimeout) {
@@ -250,7 +250,7 @@ else if (topic.numPartitions() > topicDescription.partitions().size()) {
250250
logger.error("Interrupted while waiting for partition creation results", e);
251251
}
252252
catch (TimeoutException e) {
253-
throw new KafkaException("Timed out waiting for create topics results", e);
253+
throw new KafkaException("Timed out waiting for create partitions results", e);
254254
}
255255
catch (ExecutionException e) {
256256
logger.error("Failed to create partitions", e.getCause());

spring-kafka/src/main/java/org/springframework/kafka/core/StreamsBuilderFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler exceptio
8686

8787
/**
8888
* Specify the timeout in seconds for the {@link KafkaStreams#close(long, TimeUnit)} operation.
89-
* Defaults to 10 seconds.
89+
* Defaults to {@value #DEFAULT_CLOSE_TIMEOUT} seconds.
9090
* @param closeTimeout the timeout for close in seconds.
9191
* @see KafkaStreams#close(long, TimeUnit)
9292
*/

spring-kafka/src/main/java/org/springframework/kafka/event/NonResponsiveConsumerEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public String getListenerId() {
8787

8888
@Override
8989
public String toString() {
90-
return "ListenerContainerIdleEvent [timeSinceLastPoll="
90+
return "NonResponsiveConsumerEvent [timeSinceLastPoll="
9191
+ ((float) this.timeSinceLastPoll / 1000) + "s, listenerId=" + this.listenerId
9292
+ ", container=" + getSource()
9393
+ ", topicPartitions=" + this.topicPartitions + "]";

spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ public void onMessage(ConsumerRecord<Integer, String> data) {
543543

544544
@SuppressWarnings("unchecked")
545545
@Test
546-
public void testBrokerDownEvent() throws Exception {
546+
public void testNonResponsiveConsumerEvent() throws Exception {
547547
ConsumerFactory<Integer, String> cf = mock(ConsumerFactory.class);
548548
Consumer<Integer, String> consumer = mock(Consumer.class);
549549
given(cf.createConsumer(isNull(), isNull())).willReturn(consumer);

src/reference/asciidoc/testing.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ The `brokerProperties` and `brokerPropertiesLocation` attributes of `@EmbeddedKa
160160
"auto.create.topics.enable=${kafka.broker.topics-enable:true}" }
161161
brokerPropertiesLocation = "classpath:/broker.properties")
162162
----
163-
In th example above, the property placeholders `${kafka.broker.logs-dir}` and `${kafka.broker.port}` are resolved from the Spring `Environment`.
163+
In the example above, the property placeholders `${kafka.broker.logs-dir}` and `${kafka.broker.port}` are resolved from the Spring `Environment`.
164164
In addition the broker properties are loaded from the `broker.properties` classpath resource specified by the `brokerPropertiesLocation`.
165165
Property placeholders are resolved for the `brokerPropertiesLocation` URL and for any property placeholders found in the resource.
166166
Properties defined by `brokerProperties` override properties found in `brokerPropertiesLocation`.

0 commit comments

Comments
 (0)