-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the possibility to configure Confluent Stream catalog limit (#402)
* Set stream catalog API request limit to 500 & make the limit a parameter of the application * Fix syntax * Simplify properties ref * Remove extra line --------- Co-authored-by: thcai <[email protected]>
- Loading branch information
1 parent
64bf07f
commit d50525e
Showing
3 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/main/java/com/michelin/ns4kafka/property/ConfluentCloudProperties.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,25 @@ | ||
package com.michelin.ns4kafka.property; | ||
|
||
import io.micronaut.context.annotation.ConfigurationProperties; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Confluent Cloud properties. | ||
*/ | ||
@Getter | ||
@Setter | ||
@ConfigurationProperties("ns4kafka.confluent-cloud") | ||
public class ConfluentCloudProperties { | ||
private StreamCatalogProperties streamCatalog; | ||
|
||
/** | ||
* Stream Catalog properties. | ||
*/ | ||
@Getter | ||
@Setter | ||
@ConfigurationProperties("stream-catalog") | ||
public static class StreamCatalogProperties { | ||
int pageSize = 500; | ||
} | ||
} |
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
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