Created
March 15, 2020 01:16
-
-
Save ctoestreich/7d1e1ecf41ce24156861ce610f9ebe73 to your computer and use it in GitHub Desktop.
FooEventKafkaClient
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.foo.event.client; | |
import io.micronaut.configuration.kafka.annotation.KafkaClient; | |
import io.micronaut.configuration.kafka.annotation.KafkaKey; | |
import io.micronaut.configuration.kafka.annotation.Topic; | |
@KafkaClient(id = "foo-kafka-client") | |
public interface FooEventKafkaClient { | |
void publishEvent(@Topic String topic, @KafkaKey final String key, final Foo foo); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment