-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18945 from cescoffier/disable-kafka-graceful-shut…
…down-in-dev-mode Disable the Kafka Connector graceful shutdown in dev mode
- Loading branch information
Showing
2 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...c/main/java/io/quarkus/smallrye/reactivemessaging/kafka/ReactiveMessagingKafkaConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.quarkus.smallrye.reactivemessaging.kafka; | ||
|
||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
|
||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
|
||
@ConfigRoot(name = "reactive-messaging.kafka") | ||
public class ReactiveMessagingKafkaConfig { | ||
|
||
/** | ||
* Enables the graceful shutdown in dev and test modes. | ||
* The graceful shutdown waits until the inflight records have been processed and the offset committed to Kafka. | ||
* While this setting is highly recommended in production, in dev and test modes, it's disabled by default. | ||
* This setting allows to re-enable it. | ||
*/ | ||
@ConfigProperty(defaultValue = "false") | ||
public boolean enableGracefulShutdownInDevAndTestMode; | ||
|
||
} |