|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.kafka.clients.producer.internals.Partitioner
public class Partitioner
The default partitioning strategy:
Constructor Summary | |
---|---|
Partitioner()
|
Method Summary | |
---|---|
int |
partition(ProducerRecord record,
Cluster cluster)
Compute the partition for the given record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Partitioner()
Method Detail |
---|
public int partition(ProducerRecord record, Cluster cluster)
record
- The record being sentcluster
- The current cluster metadata
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |