package space.nstart.pcp.pcp_request_service.message

import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Value
import org.springframework.kafka.annotation.KafkaListener
import org.springframework.stereotype.Component


@Component
class KafkaListener {
        private var log: Logger = LoggerFactory.getLogger(this::class.java)

        @KafkaListener(id = "placedIcFilter", topics = ["\${spring.kafka.template.default-topic}"], filter = "placedIcFilter")
        fun listener(data: String?) {
            log.info("Received message [{}] in group1 with header1", data)
        }


}