Skip to content

Commit 7d6ac65

Browse files
author
DC2-DanielKrueger
committed
version to 4.5.0
1 parent 2520554 commit 7d6ac65

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
*Type*: Demonstration Customization
99

10-
*Version*: 4.4.3
10+
*Version*: 4.5.0
1111

1212
*License*: Apache License Version 2.0
1313

@@ -23,7 +23,7 @@ to grasp the core concepts of HiveMQ Kafka customization development.
2323

2424
. Clone this repository into a Java 11 gradle project.
2525
. Run `./gradlew jar` task from gradle to build the customization.
26-
. Move the file: "build/libs/hivemq-kafka-hello-world-customization-4.4.3.jar" to the directory: "HIVEMQ_HOME/extensions/hivemq-kafka-extension/customizations"
26+
. Move the file: "build/libs/hivemq-kafka-hello-world-customization-4.5.0.jar" to the directory: "HIVEMQ_HOME/extensions/hivemq-kafka-extension/customizations"
2727
. Copy the resources/kafka-configuration.xml to "HIVEMQ_HOME/extensions/hivemq-kafka-extension" and adapt it to your environment.
2828
. Delete the "HIVEMQ_HOME/extensions/hivemq-kafka-extension/DISABLED" file.
2929
. Start HiveMQ.

src/main/java/com/hivemq/extensions/kafka/customizations/helloworld/KafkaToMqttHelloWorldTransformer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@ public class KafkaToMqttHelloWorldTransformer implements KafkaToMqttTransformer
3838

3939
private static final @NotNull Logger log = LoggerFactory.getLogger(KafkaToMqttHelloWorldTransformer.class);
4040

41-
public final static String MISSING_VALUE_COUNTER_NAME = "com.hivemq.hello-world-example.missing-value.count";
41+
public static final @NotNull String MISSING_VALUE_COUNTER_NAME = "com.hivemq.hello-world-example.missing-value.count";
4242

4343
private @Nullable MetricRegistry metricRegistry;
4444
private @Nullable Counter missingValueCounter;
4545

4646
@Override
47-
public void init(@NotNull final KafkaToMqttInitInput input) {
47+
public void init(final @NotNull KafkaToMqttInitInput input) {
4848
this.metricRegistry = input.getMetricRegistry();
4949
// build any custom metric based on your business logic and needs
5050
this.missingValueCounter = metricRegistry.counter(MISSING_VALUE_COUNTER_NAME);
5151
}
5252

5353

5454
@Override
55-
public void transformKafkaToMqtt(@NotNull final KafkaToMqttInput kafkaToMqttInput,
56-
@NotNull final KafkaToMqttOutput kafkaToMqttOutput) {
55+
public void transformKafkaToMqtt(final @NotNull KafkaToMqttInput kafkaToMqttInput,
56+
final @NotNull KafkaToMqttOutput kafkaToMqttOutput) {
5757
// get the Kafka record from the input
5858
final KafkaRecord kafkaRecord = kafkaToMqttInput.getKafkaRecord();
5959

0 commit comments

Comments
 (0)