-
Notifications
You must be signed in to change notification settings - Fork 1
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
priority partitioner #31
Conversation
import org.apache.kafka.common.Cluster | ||
|
||
class GroupPartitioner extends Partitioner { | ||
private val partitionsPerGroup = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to read it from the config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't understand how to do that so I put const in the meanwhile
import org.apache.kafka.common.utils.Utils | ||
|
||
class PriorityPartitioner extends Partitioner { | ||
private val partitionsPerPriority = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@omerlh can you help me with syntax here? I don't get how to read from configuration, and I tried..
No description provided.