Skip to content

Instantly share code, notes, and snippets.

@ctoestreich
Created February 25, 2019 15:33
Show Gist options
  • Save ctoestreich/33b478af3132e0f34c43fb5f6dfa97d6 to your computer and use it in GitHub Desktop.
Save ctoestreich/33b478af3132e0f34c43fb5f6dfa97d6 to your computer and use it in GitHub Desktop.
PersonObjectClient.java
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