Package io.confluent.parallelconsumer
Interface JStreamParallelStreamProcessor<K,V>
- All Superinterfaces:
AutoCloseable,Closeable,DrainingCloseable
- All Known Implementing Classes:
JStreamParallelEoSStreamProcessor
public interface JStreamParallelStreamProcessor<K,V> extends DrainingCloseable
-
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 Type Method Description static JStreamParallelStreamProcessorcreateJStreamEosStreamProcessor(ParallelConsumerOptions<?,?> options)Stream<ParallelStreamProcessor.ConsumeProduceResult<K,V,K,V>>pollProduceAndStream(Function<PollContext<K,V>,List<org.apache.kafka.clients.producer.ProducerRecord<K,V>>> userFunction)LikeAbstractParallelEoSStreamProcessor#pollAndProduceManybut 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,K,V>> pollProduceAndStream(Function<PollContext<K,V>,List<org.apache.kafka.clients.producer.ProducerRecord<K,V>>> userFunction)LikeAbstractParallelEoSStreamProcessor#pollAndProduceManybut 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
-