Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumergoup additions #10

Merged
merged 10 commits into from
Aug 16, 2015
Merged

Consumergoup additions #10

merged 10 commits into from
Aug 16, 2015

Conversation

wvanbergen
Copy link
Owner

This adds a bunch of methods to improve the kafka high level consumer.

  • Helper methods on Topic and Partition types.
  • WatchPartitionOwner to watch a partition claim.
  • WatchTopics & WatchPartitions to return the list and watch Zookeeper for changes.

}

func (p *Partition) PreferredReplica() int32 {
return p.Replicas[0]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to make sure Replicas has at least one item in it, return -1 otherwise.

wvanbergen added a commit that referenced this pull request Aug 16, 2015
@wvanbergen wvanbergen merged commit 3bebddc into master Aug 16, 2015
@wvanbergen wvanbergen deleted the consumergoup_additions branch August 16, 2015 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant