Package io.confluent.parallelconsumer
Interface JStreamParallelStreamProcessor<K,V>
- All Superinterfaces:
AutoCloseable
,Closeable
,DrainingCloseable
- All Known Implementing Classes:
JStreamParallelEoSStreamProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.confluent.parallelconsumer.internal.DrainingCloseable
DrainingCloseable.DrainingMode
-
Field Summary
Fields inherited from interface io.confluent.parallelconsumer.internal.DrainingCloseable
DEFAULT_TIMEOUT
-
Method Summary
Modifier and TypeMethodDescriptioncreateJStreamEosStreamProcessor
(ParallelConsumerOptions<?, ?> options) pollProduceAndStream
(Function<PollContext<K, V>, List<org.apache.kafka.clients.producer.ProducerRecord<K, V>>> userFunction) LikeAbstractParallelEoSStreamProcessor#pollAndProduceMany
but instead of callbacks, streams the results instead, after the produce result is ack'd by Kafka.Methods inherited from interface io.confluent.parallelconsumer.internal.DrainingCloseable
close, close, closeDontDrainFirst, closeDontDrainFirst, closeDrainFirst, closeDrainFirst, workRemaining
-
Method Details
-
createJStreamEosStreamProcessor
static JStreamParallelStreamProcessor createJStreamEosStreamProcessor(ParallelConsumerOptions<?, ?> options) -
pollProduceAndStream
Stream<ParallelStreamProcessor.ConsumeProduceResult<K,V, pollProduceAndStreamK, V>> (Function<PollContext<K, V>, List<org.apache.kafka.clients.producer.ProducerRecord<K, V>>> userFunction) LikeAbstractParallelEoSStreamProcessor#pollAndProduceMany
but instead of callbacks, streams the results instead, after the produce result is ack'd by Kafka.- Returns:
- a stream of results of applying the function to the polled records
-