diff --git a/parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/RecordProcessor.java b/parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/RecordProcessor.java index f1c156e45..b7a357065 100644 --- a/parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/RecordProcessor.java +++ b/parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/RecordProcessor.java @@ -30,7 +30,7 @@ interface RecordConsumer extends java.util.function.Consumer extends java.util.function.Function { + interface RecordFunction extends java.util.function.Function, R> { /** @@ -40,7 +40,7 @@ interface RecordFunction extends java.util.function.Function { * @return the function result */ @Override - R apply(T t); + R apply(PollContext t); } }