Skip to content

Commit

Permalink
feat: Update: 1.upgrade version to v1.6(3.7.0.1.6); 2.update consumer…
Browse files Browse the repository at this point in the history
… builder API.

Signed-off-by: photowey <photowey@gmail.com>
  • Loading branch information
photowey committed May 3, 2024
1 parent 588293c commit 5fd0a5c
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 10 deletions.
2 changes: 1 addition & 1 deletion kafka-plus-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.photowey</groupId>
<artifactId>kafka-plus</artifactId>
<version>3.7.0.1.5</version>
<version>3.7.0.1.6-SNAPSHOT</version>
</parent>

<artifactId>kafka-plus-autoconfigure</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion kafka-plus-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.photowey</groupId>
<artifactId>kafka-plus</artifactId>
<version>3.7.0.1.5</version>
<version>3.7.0.1.6-SNAPSHOT</version>
</parent>

<artifactId>kafka-plus-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,24 @@ default ConsumerBuilder strategy(Class<?> strategy) {

// ----------------------------------------------------------------

/**
* Enhance custom property configs.
*
* @param fx the callback.
* @return {@link ConsumerBuilder}
*/
ConsumerBuilder enhanceProps(Consumer<Properties> fx);

/**
* Enhance custom configs.
*
* @param fx the callback.
* @return {@link ConsumerBuilder}
*/
ConsumerBuilder enhanceConfigs(Consumer<Map<String, Object>> fx);

// ----------------------------------------------------------------

/**
* Check custom property configs.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,28 @@ public ConsumerBuilder configs(Map<String, Object> configs) {

// ----------------------------------------------------------------

@Override
public ConsumerBuilder enhanceProps(Consumer<Properties> fx) {
checkNotNull("enhanceProps.fx", fx);
if (null != super.props) {
fx.accept(super.props);
}

return this;
}

@Override
public ConsumerBuilder enhanceConfigs(Consumer<Map<String, Object>> fx) {
checkNotNull("enhanceConfigs.fx", fx);
if (null != super.configs) {
fx.accept(super.configs);
}

return this;
}

// ----------------------------------------------------------------

@Override
public ConsumerBuilder checkProps(Consumer<Properties> fx) {
checkNotNull("checkProps.fx", fx);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,15 @@ default ProducerBuilder deliveryTimeoutMs(long timeout, TimeUnit unit) {
* Check custom property configs.
*
* @param fx the callback.
* @return {@link ConsumerBuilder}
* @return {@link ProducerBuilder}
*/
ProducerBuilder checkProps(Consumer<Properties> fx);

/**
* Check custom configs.
*
* @param fx the callback.
* @return {@link ConsumerBuilder}
* @return {@link ProducerBuilder}
*/
ProducerBuilder checkConfigs(Consumer<Map<String, Object>> fx);

Expand Down
2 changes: 1 addition & 1 deletion kafka-plus-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.photowey</groupId>
<artifactId>kafka-plus</artifactId>
<version>3.7.0.1.5</version>
<version>3.7.0.1.6-SNAPSHOT</version>
</parent>

<artifactId>kafka-plus-engine</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion kafka-plus-jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.photowey</groupId>
<artifactId>kafka-plus</artifactId>
<version>3.7.0.1.5</version>
<version>3.7.0.1.6-SNAPSHOT</version>
</parent>

<artifactId>kafka-plus-jackson</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion kafka-plus-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.photowey</groupId>
<artifactId>kafka-plus</artifactId>
<version>3.7.0.1.5</version>
<version>3.7.0.1.6-SNAPSHOT</version>
</parent>

<artifactId>kafka-plus-runtime</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion kafkaplus-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.photowey</groupId>
<artifactId>kafka-plus</artifactId>
<version>3.7.0.1.5</version>
<version>3.7.0.1.6-SNAPSHOT</version>
</parent>

<artifactId>kafkaplus-spring-boot-starter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion kafkaplus-spring-boot3-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.photowey</groupId>
<artifactId>kafka-plus</artifactId>
<version>3.7.0.1.5</version>
<version>3.7.0.1.6-SNAPSHOT</version>
</parent>

<artifactId>kafkaplus-spring-boot3-starter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.github.photowey</groupId>
<artifactId>kafka-plus</artifactId>
<!-- ${kafka.version}.x.y -->
<version>3.7.0.1.5</version>
<version>3.7.0.1.6-SNAPSHOT</version>
<packaging>pom</packaging>

<name>${project.groupId}:${project.artifactId}</name>
Expand Down

0 comments on commit 5fd0a5c

Please sign in to comment.