File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
kafka-webview-ui/src/main/java/org/sourcelab/kafka/webview/ui Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,8 @@ private ClientConfig.Builder createClientConfig(
172172 .withTopicConfig (topicConfig )
173173 .withConsumerId (consumerId )
174174 .withPartitions (view .getPartitionsAsSet ())
175- .withMaxResultsPerPartition (view .getResultsPerPartition ());
175+ .withMaxResultsPerPartition (view .getResultsPerPartition ())
176+ .withPollTimeoutMs (view .getPollTimeoutMs ());
176177
177178 final List <RecordFilterDefinition > recordFilterDefinitions = new ArrayList <>();
178179
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ public class View {
7373 @ Column (nullable = false )
7474 private Integer resultsPerPartition = 10 ;
7575
76+ @ Column (nullable = false )
77+ private long pollTimeoutMs = 5000 ;
78+
7679 @ OneToMany (
7780 fetch = FetchType .LAZY ,
7881 cascade = { CascadeType .PERSIST , CascadeType .MERGE },
@@ -159,6 +162,14 @@ public void setResultsPerPartition(final Integer resultsPerPartition) {
159162 this .resultsPerPartition = resultsPerPartition ;
160163 }
161164
165+ public long getPollTimeoutMs () {
166+ return pollTimeoutMs ;
167+ }
168+
169+ public void setPollTimeoutMs (long pollTimeoutMs ) {
170+ this .pollTimeoutMs = pollTimeoutMs ;
171+ }
172+
162173 /**
163174 * @return Returns the defined partitions as a Set.
164175 */
You can’t perform that action at this time.
0 commit comments