All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datasift.dropwizard.kafka.consumer.StreamProcessor Maven / Gradle / Ivy

There is a newer version: 0.7.1-1
Show newest version
package com.datasift.dropwizard.kafka.consumer;

/**
 * Processes an {@link Iterable} of messages of type {@code T}.
 * 

* If you wish to process each message individually and iteratively, it's advised that you instead * use a {@link MessageProcessor}, as it provides a higher-level of abstraction. *

* Note: since consumers may use multiple threads, it is important that implementations are * thread-safe. */ public interface StreamProcessor { /** * Process an {@link Iterable} of messages of type T. * * @param stream the stream of messages to process. * @param topic the topic the {@code stream} belongs to. */ public void process(Iterable stream, String topic); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy