Skip to content

Commit 3cede9c

Browse files
committed
Auto increment version after release
Signed-off-by: GitHub <noreply@github.com>
1 parent 279772a commit 3cede9c

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

src/main/java/hlf/java/rest/client/listener/DynamicKafkaListener.java

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
import hlf.java.rest.client.config.KafkaConsumerConfig;
44
import hlf.java.rest.client.config.KafkaProperties;
55
import hlf.java.rest.client.exception.ServiceException;
6-
import java.util.ArrayList;
7-
import java.util.List;
8-
import java.util.concurrent.CompletableFuture;
9-
import java.util.concurrent.ExecutionException;
10-
import java.util.concurrent.atomic.AtomicInteger;
116
import lombok.Getter;
127
import lombok.SneakyThrows;
138
import lombok.extern.slf4j.Slf4j;
@@ -31,6 +26,12 @@
3126
import org.springframework.kafka.support.Acknowledgment;
3227
import org.springframework.util.CollectionUtils;
3328

29+
import java.util.ArrayList;
30+
import java.util.List;
31+
import java.util.concurrent.CompletableFuture;
32+
import java.util.concurrent.ExecutionException;
33+
import java.util.concurrent.atomic.AtomicInteger;
34+
3435
/*
3536
* This class is the configuration class for dynamically creating consumers to receiving the blockchain
3637
* transaction from Kafka Topic and send it to Fabric channel.
@@ -59,19 +60,6 @@ public class DynamicKafkaListener {
5960
@Value("${kafka.general.consumer-shutdown-timeout-in-sec:30}")
6061
private int shutdownTimeoutInSeconds;
6162

62-
// Registering a 'graceful' shutdown hook in PostConstruct
63-
/* @PostConstruct
64-
public void init() {
65-
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
66-
log.info("JVM shutdown hook triggered for Kafka consumers");
67-
try {
68-
performGracefulShutdown();
69-
} catch (Exception e) {
70-
log.error("Error during Kafka shutdown", e);
71-
}
72-
}));
73-
}*/
74-
7563
@EventListener(ContextClosedEvent.class)
7664
public void onContextClosed() {
7765
log.info("Application context closing, performing graceful Kafka shutdown");

0 commit comments

Comments
 (0)