Skip to content

Commit c57634f

Browse files
authored
Properly mention Apache Kafka trademark in docs (#3540)
1 parent e7d99e9 commit c57634f

23 files changed

+78
-97
lines changed

spring-integration-kafka/src/main/java/org/springframework/integration/kafka/channel/AbstractKafkaChannel.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
import org.springframework.util.Assert;
2929

3030
/**
31-
* Abstract MessageChannel backed by a Kafka topic.
31+
* Abstract MessageChannel backed by an Apache Kafka topic.
3232
*
3333
* @author Gary Russell
34+
* @author Artem Bilan
3435
*
3536
* @since 5.4
3637
*
@@ -44,7 +45,7 @@ public abstract class AbstractKafkaChannel extends AbstractMessageChannel {
4445
private String groupId;
4546

4647
/**
47-
* Construct an instance with the provided paramters.
48+
* Construct an instance with the provided {@link KafkaOperations} and topic.
4849
* @param template the template.
4950
* @param topic the topic.
5051
*/

spring-integration-kafka/src/main/java/org/springframework/integration/kafka/channel/PollableKafkaChannel.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import org.springframework.util.Assert;
3434

3535
/**
36-
* Pollable channel backed by a Kafka topic.
36+
* Pollable channel backed by an Apache Kafka topic.
3737
*
3838
* @author Gary Russell
3939
* @author Artem Bilan
@@ -64,13 +64,6 @@ public PollableKafkaChannel(KafkaOperations<?, ?> template, KafkaMessageSource<?
6464
}
6565
}
6666

67-
private static String topic(KafkaMessageSource<?, ?> source) {
68-
Assert.notNull(source, "'source' cannot be null");
69-
String[] topics = source.getConsumerProperties().getTopics();
70-
Assert.isTrue(topics != null && topics.length == 1, "Only one topic is allowed");
71-
return topics[0];
72-
}
73-
7467
@Override
7568
@Nullable
7669
public Message<?> receive() {
@@ -88,10 +81,9 @@ protected Message<?> doReceive() {
8881
ChannelInterceptorList interceptorList = getIChannelInterceptorList();
8982
Deque<ChannelInterceptor> interceptorStack = null;
9083
boolean counted = false;
91-
boolean traceEnabled = isLoggingEnabled() && logger.isTraceEnabled();
9284
try {
93-
if (traceEnabled) {
94-
logger.trace("preReceive on channel '" + this + "'");
85+
if (isLoggingEnabled()) {
86+
logger.trace(() -> "preReceive on channel '" + this + "'");
9587
}
9688
if (interceptorList.getInterceptors().size() > 0) {
9789
interceptorStack = new ArrayDeque<>();
@@ -197,4 +189,11 @@ public boolean hasExecutorInterceptors() {
197189
return this.executorInterceptorsSize > 0;
198190
}
199191

192+
private static String topic(KafkaMessageSource<?, ?> source) {
193+
Assert.notNull(source, "'source' cannot be null");
194+
String[] topics = source.getConsumerProperties().getTopics();
195+
Assert.isTrue(topics != null && topics.length == 1, "Only one topic is allowed");
196+
return topics[0];
197+
}
198+
200199
}

spring-integration-kafka/src/main/java/org/springframework/integration/kafka/channel/PublishSubscribeKafkaChannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.springframework.kafka.core.KafkaOperations;
2424

2525
/**
26-
* Publish/subscribe channel backed by a Kafka topic.
26+
* Publish/subscribe channel backed by an Apache Kafka topic.
2727
*
2828
* @author Gary Russell
2929
*

spring-integration-kafka/src/main/java/org/springframework/integration/kafka/channel/SubscribableKafkaChannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import org.springframework.util.Assert;
3535

3636
/**
37-
* Subscribable channel backed by a Kafka topic.
37+
* Subscribable channel backed by an Apache Kafka topic.
3838
*
3939
* @author Gary Russell
4040
* @author Artem Bilan
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
2-
* Provides classes related to message channels.
2+
* Provides classes related to message channel implementations for Apache Kafka.
33
*/
44
package org.springframework.integration.kafka.channel;

spring-integration-kafka/src/main/java/org/springframework/integration/kafka/config/xml/KafkaChannelParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.util.StringUtils;
2929

3030
/**
31-
* Parser for a channel backed by a Kafka topic.
31+
* Parser for a channel backed by an Apache Kafka topic.
3232
*
3333
* @author Gary Russell
3434
*

spring-integration-kafka/src/main/java/org/springframework/integration/kafka/config/xml/KafkaNamespaceHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.springframework.integration.config.xml.AbstractIntegrationNamespaceHandler;
2020

2121
/**
22-
* The namespace handler for the Kafka namespace.
22+
* The namespace handler for the Apache Kafka namespace.
2323
*
2424
* @author Soby Chacko
2525
* @author Gary Russell
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
2-
* Provides parser classes to provide Xml namespace support for the Kafka components.
2+
* Provides parser classes to provide Xml namespace support for the Apache Kafka components.
33
*/
44
package org.springframework.integration.kafka.config.xml;

spring-integration-kafka/src/main/java/org/springframework/integration/kafka/dsl/AbstractKafkaChannelSpec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
/**
2323
*
24-
* Spec for a message channel backed by a Kafka topic.
24+
* Spec for a message channel backed by an Apache Kafka topic.
2525
*
2626
* @param <S> the spec type.
2727
* @param <C> the channel type.

spring-integration-kafka/src/main/java/org/springframework/integration/kafka/dsl/Kafka.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ public static <K, V> KafkaInboundChannelAdapterSpec<K, V> inboundChannelAdapter(
143143
KafkaAckCallbackFactory<K, V> ackCallbackFactory,
144144
boolean allowMultiFetch) {
145145

146-
return new KafkaInboundChannelAdapterSpec<>(consumerFactory, consumerProperties, ackCallbackFactory, allowMultiFetch);
146+
return new KafkaInboundChannelAdapterSpec<>(consumerFactory, consumerProperties, ackCallbackFactory,
147+
allowMultiFetch);
147148
}
148149

149150
/**

0 commit comments

Comments
 (0)