Skip to content

Commit 9d3bfd6

Browse files
committed
More javadoc improvements.
1 parent 20ddeb2 commit 9d3bfd6

File tree

7 files changed

+16
-10
lines changed

7 files changed

+16
-10
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ To use the SDK, add the following dependency to your Maven project:
2626

2727
== License
2828

29-
The HiveMQ Extension SDK is licensed under the `APACHE LICENSE, VERSION 2.0`.
29+
The HiveMQ Kafka Extension SDK is licensed under the `APACHE LICENSE, VERSION 2.0`.
3030
A copy of the license can be found link:LICENSE[here].

build.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ metadata {
6363
/* ******************** dependencies ******************** */
6464

6565
repositories {
66-
mavenLocal()
6766
mavenCentral()
6867
}
6968

@@ -130,12 +129,6 @@ bintray {
130129
gpg.apply {
131130
sign = true
132131
}
133-
mavenCentralSync.apply {
134-
sync = false
135-
user = "${project.findProperty("mavenCentralUser") ?: System.getenv("MAVEN_CENTRAL_USER")}"
136-
password = "${project.findProperty("mavenCentralKey") ?: System.getenv("MAVEN_CENTRAL_KEY")}"
137-
close = "0"
138-
}
139132
}
140133
}
141134
}

src/main/java/com/hivemq/extensions/kafka/api/builders/KafkaRecordBuilder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.hivemq.extensions.kafka.api.builders;
1818

19+
import com.hivemq.extension.sdk.api.annotations.DoNotImplement;
1920
import com.hivemq.extension.sdk.api.annotations.NotNull;
2021
import com.hivemq.extensions.kafka.api.model.KafkaRecord;
2122

@@ -35,6 +36,7 @@
3536
* @author Georg Held
3637
* @since 4.4.0
3738
*/
39+
@DoNotImplement
3840
public interface KafkaRecordBuilder {
3941

4042
/**
@@ -64,7 +66,7 @@ public interface KafkaRecordBuilder {
6466
* @return this builder
6567
* @since 4.4.0
6668
*/
67-
@NotNull KafkaRecordBuilder key(@NotNull byte[] key);
69+
@NotNull KafkaRecordBuilder key(byte @NotNull [] key);
6870

6971
/**
7072
* Set the key of the Kafka record.

src/main/java/com/hivemq/extensions/kafka/api/model/KafkaCluster.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.hivemq.extensions.kafka.api.model;
1718

1819
import com.hivemq.extension.sdk.api.annotations.DoNotImplement;
@@ -39,6 +40,7 @@ public interface KafkaCluster {
3940

4041
/**
4142
* @return the configured {@code <bootstrap-servers>} of the cluster.
43+
* @since 4.4.0
4244
*/
4345
@NotNull String getBootstrapServers();
4446
}

src/main/java/com/hivemq/extensions/kafka/api/services/KafkaTopicService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.hivemq.extensions.kafka.api.services;
1718

1819
import com.hivemq.extension.sdk.api.annotations.DoNotImplement;
@@ -79,7 +80,7 @@ public interface KafkaTopicService {
7980
* Create multiple Kafka topics on the associated cluster. Use {@link KafkaTopicService#getKafkaTopicStates(Set)} if
8081
* you would like to check, whether the topics already exists.
8182
* <p>
82-
* * The returned map contains exactly one entry per queried topic in the argument set.
83+
* The returned map contains exactly one entry per given topic in the argument set.
8384
* <p>
8485
* This method can block the calling transformer.
8586
*

src/main/java/com/hivemq/extensions/kafka/api/transformers/Transformer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,29 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.hivemq.extensions.kafka.api.transformers;
1718

1819
import com.hivemq.extension.sdk.api.annotations.DoNotImplement;
20+
import com.hivemq.extension.sdk.api.annotations.Immutable;
1921
import com.hivemq.extension.sdk.api.annotations.NotNull;
2022

2123
/**
2224
* This is the base interface for all HiveMQ Enterprise Extension for Kafka transformer.
2325
*
2426
* @author Christoph Schäbel
2527
* @author Georg Held
28+
* @since 4.4.0
2629
*/
30+
@Immutable
2731
@DoNotImplement
2832
public interface Transformer<I extends TransformerInitInput> {
2933

3034
/**
3135
* Use the init method to set up static runtime context for the execution of your transformer.
3236
*
3337
* @param input see the specific input e.g. {@link com.hivemq.extensions.kafka.api.transformers.mqtttokafka.MqttToKafkaInitInput}.
38+
* @since 4.4.0
3439
*/
3540
default void init(@NotNull I input) {
3641
}

src/main/java/com/hivemq/extensions/kafka/api/transformers/TransformerInitInput.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.hivemq.extensions.kafka.api.transformers;
1718

1819
import com.hivemq.extension.sdk.api.annotations.DoNotImplement;
20+
import com.hivemq.extension.sdk.api.annotations.Immutable;
1921

2022
/**
2123
* A marker interface for the input object of the {@link Transformer#init(TransformerInitInput)} method.
@@ -24,6 +26,7 @@
2426
* @author Georg Held
2527
* @since 4.4.0
2628
*/
29+
@Immutable
2730
@DoNotImplement
2831
public interface TransformerInitInput {
2932

0 commit comments

Comments
 (0)