Skip to content

Commit

Permalink
fix compiler errors in kafka-streams guide
Browse files Browse the repository at this point in the history
  • Loading branch information
jharting committed Apr 10, 2020
1 parent 020239a commit 45a6a8f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/src/main/asciidoc/kafka-streams.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ import java.util.stream.Collectors;
import javax.enterprise.context.ApplicationScoped;
import org.eclipse.microprofile.reactive.messaging.Outgoing;
import org.jboss.logging.Logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.reactivex.Flowable;
import io.smallrye.reactive.messaging.kafka.KafkaRecord;
Expand All @@ -130,7 +131,7 @@ import io.smallrye.reactive.messaging.kafka.KafkaRecord;
@ApplicationScoped
public class ValuesGenerator {
private static final Logger LOG = Logger.getLogger(ValuesGenerator.class);
private static final Logger LOG = LoggerFactory.getLogger(ValuesGenerator.class);
private Random random = new Random();
Expand Down Expand Up @@ -167,7 +168,7 @@ public class ValuesGenerator {
@Outgoing("weather-stations") // <3>
public Flowable<KafkaRecord<Integer, String>> weatherStations() {
List<KafkaRecord<Integer, String>> stationsAsJson = stations.stream()
.map(s -> KafkaMessage.of(
.map(s -> KafkaRecord.of(
s.id,
"{ \"id\" : " + s.id +
", \"name\" : \"" + s.name + "\" }"))
Expand Down Expand Up @@ -297,6 +298,7 @@ import java.math.RoundingMode;
import io.quarkus.runtime.annotations.RegisterForReflection;
@RegisterForReflection
public class Aggregation {
public int stationId;
Expand Down

0 comments on commit 45a6a8f

Please sign in to comment.