File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
apps/kafka-key-maintenance/src/main/kotlin/no/nav/paw/kafkakeymaintenance Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ fun KafkaFactory.initPeriodeConsumer(
19
19
keyDeserializer = LongDeserializer ::class ,
20
20
valueDeserializer = PeriodeDeserializer ::class ,
21
21
autoCommit = false ,
22
- autoOffsetReset = " earliest"
22
+ autoOffsetReset = " earliest" ,
23
+ maxPollrecords = 1000
23
24
)
24
25
val reblancingListener = HwmRebalanceListener (applicationContext, periodeConsumer)
25
26
periodeConsumer.subscribe(listOf (periodeTopic))
26
27
return reblancingListener to periodeConsumer.asSequence(
27
28
stop = applicationContext.shutdownCalled,
28
- pollTimeout = Duration .ofMillis(500 ),
29
+ pollTimeout = Duration .ofMillis(1000 ),
29
30
closeTimeout = Duration .ofSeconds(1 )
30
31
)
31
32
}
You can’t perform that action at this time.
0 commit comments