public class SimplePartitioner extends Object implements org.apache.kafka.clients.producer.Partitioner
public void configure(Map<String,?> configs)
configure 在接口中 org.apache.kafka.common.Configurablepublic int partition(String topic, Object key, byte[] keyBytes, Object value, byte[] valueBytes, org.apache.kafka.common.Cluster cluster)
partition 在接口中 org.apache.kafka.clients.producer.Partitionerpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 org.apache.kafka.clients.producer.PartitionerCopyright © 2018. All rights reserved.