void close()
Partitioner Contract — Partitioning Strategy
Partitioner
is the contract of partitioners (aka partitioning strategies) that can compute the partition for a producer record.
Partitioner
is also a Configurable that can be created by reflection and need to take configuration parameters.
Note
|
DefaultPartitioner is the one and only known implementation of the Partitioner Contract in Apache Kafka. |
Method | Description |
---|---|
|
Closes the partitioner |
|
Computes the partition ID for a record (described by a topic, a key, a value, the serialized key and value, and the Cluster metadata) Used when |