com.datasift.dropwizard.kafka.consumer.KafkaConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-extra-kafka Show documentation
Show all versions of dropwizard-extra-kafka Show documentation
Dropwizard integration for working with Kafka.
package com.datasift.dropwizard.kafka.consumer;
/**
* Interface for consuming a stream of messages from Kafka.
*/
public interface KafkaConsumer {
/**
* Commit the offsets of the current position in the message streams.
*
* @see kafka.consumer.ConsumerConnector#commitOffsets()
*/
public void commitOffsets();
/**
* Determines if this {@link KafkaConsumer} is currently consuming.
*
* @return true if this {@link KafkaConsumer} is currently consuming from at least one
* partition; otherwise, false.
*/
public boolean isRunning();
}