Created
February 25, 2019 15:33
-
-
Save ctoestreich/33b478af3132e0f34c43fb5f6dfa97d6 to your computer and use it in GitHub Desktop.
PersonObjectClient.java
This file contains 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.company.kafka.client; | |
import com.company.avro.PersonObject; | |
import io.micronaut.configuration.kafka.annotation.KafkaClient; | |
import io.micronaut.configuration.kafka.annotation.KafkaKey; | |
import io.micronaut.configuration.kafka.annotation.Topic; | |
@KafkaClient(id = "person-object-client") | |
public interface PersonObjectClient { | |
String OUTPUT = "person-object-output"; | |
@Topic(OUTPUT) | |
void publishEvent(@KafkaKey String eventKey, PersonObject personObject); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment