所有方法 实例方法 具体方法
| 限定符和类型 |
方法和说明 |
void |
addInterceptor(ProducerInterceptor interceptor) |
List<SendResult> |
batchSend(List<ProduceMessage> messages,
String txId,
long timeout,
TimeUnit timeoutUnit,
boolean isOneway,
boolean failover,
AsyncBatchProduceCallback callback) |
PartitionMetadata |
dispatchPartitions(List<ProduceMessage> messages,
TopicMetadata topicMetadata,
List<PartitionMetadata> partitions) |
PartitionMetadata |
dispatchPartitions(List<ProduceMessage> messages,
TopicMetadata topicMetadata,
List<PartitionMetadata> partitions,
List<PartitionMetadata> blackPartitionList) |
List<SendResult> |
doBatchSend(List<ProduceMessage> messages,
String txId,
long timeout,
TimeUnit timeoutUnit,
boolean isOneway,
boolean failover,
AsyncBatchProduceCallback callback) |
List<SendResult> |
doBatchSend(List<ProduceMessage> messages,
TopicMetadata topicMetadata,
PartitionMetadata partition,
List<PartitionMetadata> partitions,
String txId,
long timeout,
TimeUnit timeoutUnit,
boolean isOneway,
boolean failover,
AsyncBatchProduceCallback callback) |
protected List<SendResult> |
doBatchSendInternal(List<ProduceMessage> messages,
TopicMetadata topicMetadata,
PartitionMetadata partition,
List<PartitionMetadata> partitions,
String txId,
long timeout,
TimeUnit timeoutUnit,
boolean isOneway,
boolean failover,
AsyncBatchProduceCallback callback) |
protected List<SendResult> |
doSendBatchMessage(BrokerNode brokerNode,
String topic,
String app,
List<ProduceMessage> messages,
String txId,
org.joyqueue.domain.QosLevel qosLevel,
long produceTimeout,
long timeout,
boolean isOneway,
AsyncBatchProduceCallback callback) |
List<BrokerNode> |
filterNotAvailableBrokers(List<BrokerNode> brokerNodes) |
TopicMetadata |
getAndCheckTopicMetadata(String topic) |
List<PartitionMetadata> |
getBrokerPartitions(TopicMetadata topicMetadata,
List<BrokerNode> brokerNodes) |
List<BrokerNode> |
getRegionBrokers(TopicMetadata topicMetadata) |
String |
getTopicFullName(String topic) |
protected List<SendResult> |
handleSendBatchResultData(String topic,
String app,
SendBatchResultData sendBatchResultData) |
boolean |
isFailover(List<ProduceMessage> messages) |
void |
removeInterceptor(ProducerInterceptor interceptor) |
SendResult |
send(ProduceMessage message,
String txId,
long timeout,
TimeUnit timeoutUnit,
boolean isOneway,
boolean failover,
AsyncProduceCallback callback) |
protected void |
validate() |