Skip to content

Commit

Permalink
Enable Kafka consumers (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaja-nav authored Jan 11, 2024
1 parent fae654d commit bca9229
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Profile
import org.springframework.kafka.annotation.KafkaListener
import org.springframework.kafka.support.Acknowledgment
import org.springframework.stereotype.Component

@Profile("remote")
@Component
class DialogmoteStatusendringListener(
private val dialogmoteStatusService: DialogmoteStatusService,
private val dialogmoteStatusService: DialogmoteStatusService
) {
@KafkaListener(topics = [DIALOGMOTE_STATUSENDRING_TOPIC], containerFactory = "DialogmoteListenerContainerFactory")
fun dialogmoteStatusEndringListener(
consumerRecord: ConsumerRecord<String, KDialogmoteStatusEndring>,
acknowledgment: Acknowledgment,
acknowledgment: Acknowledgment
) {
LOG.info("Got record from $DIALOGMOTE_STATUSENDRING_TOPIC topic for dialogmoteUuid: ${consumerRecord.value().getDialogmoteUuid()}")
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Profile
import org.springframework.kafka.annotation.KafkaListener
import org.springframework.kafka.support.Acknowledgment
import org.springframework.stereotype.Component

@Profile("remote")
@Component
class DialogmotekandidatListener(
private val dialogmotekandidatService: DialogmotekandidatService
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Profile
import org.springframework.kafka.annotation.KafkaListener
import org.springframework.kafka.support.Acknowledgment
import org.springframework.stereotype.Component

@Profile("remote")
@Component
class IsOppfolgingstilfelleListener(
private val oppfolgingstilfelleService: OppfolgingstilfelleService
) {
Expand Down

0 comments on commit bca9229

Please sign in to comment.