Skip to content

Instantly share code, notes, and snippets.

@apurvam
Created November 23, 2016 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apurvam/cf304bd625b93f0c98afcbacff515b52 to your computer and use it in GitHub Desktop.
Save apurvam/cf304bd625b93f0c98afcbacff515b52 to your computer and use it in GitHub Desktop.
Updating the KakfaConsumer to support transactions
public interface Consumer<K,V> extends Closeable {
/**
* Returns the currently consumed but uncommitted offsets.
*/
Map<TopicPartition, OffsetAndMetadata> uncommittedOffsets();
/**
* Returns the consumer group id.
*/
String groupId();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment