Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka 2.1.0 client #660

merged 5 commits into from Dec 11, 2018
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

Fix Akka deprecation

  • Loading branch information...
ennru committed Dec 11, 2018
commit 7ae435a8f5749f79eedea95239a018c40081ebf5
@@ -11,7 +11,7 @@
import akka.kafka.KafkaConsumerActor;
import akka.kafka.KafkaPorts;
import akka.kafka.Metadata;
import akka.pattern.PatternsCS;
import akka.pattern.Patterns;
import java.time.Duration;
import java.util.List;
import java.util.Optional;
@@ -73,7 +73,7 @@ public void demo() throws Exception {
ActorRef consumer = system().actorOf((KafkaConsumerActor.props(settings)));

CompletionStage<Metadata.Topics> topicsStage =
PatternsCS.ask(consumer, Metadata.createListTopics(), timeout)
Patterns.ask(consumer, Metadata.createListTopics(), timeout)
.thenApply(reply -> ((Metadata.Topics) reply));

// convert response
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.