Created
July 23, 2020 10:43
-
-
Save maheshwarLigade/c7b092671e7761daac707f874872f000 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package com.techwasti.kafkaex; | |
import io.micronaut.configuration.kafka.annotation.KafkaClient; | |
import io.micronaut.configuration.kafka.annotation.KafkaKey; | |
import io.micronaut.configuration.kafka.annotation.Topic; | |
@KafkaClient | |
public interface GreetMessageClient { | |
// greet is a kafka topic | |
void sendGreetMessage(@KafkaKey String day, String message); | |
void sendGreetMessage(@Topic String topic, @KafkaKey String day, String message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment