public class Producer extends ClientConfig
| 限定符和类型 | 字段和说明 |
|---|---|
protected ProducerImpl |
producer |
SIGN_METHOD_SHA1, SIGN_METHOD_SHA256| 构造器和说明 |
|---|
Producer() |
buildMQClientId, changeInstanceNameToPID, cloneClientConfig, getBatchPullNumber, getClientCallbackExecutorThreads, getClientIP, getInstanceName, getNameServerAddress, getPollingWaitSeconds, getRequestTimeoutMS, getRetryTimesWhenSendFailed, getSecretId, getSecretKey, getSignMethod, setBatchPullNumber, setClientCallbackExecutorThreads, setClientIP, setInstanceName, setNameServerAddress, setPollingWaitSeconds, setRequestTimeoutMS, setRetryTimesWhenSendFailed, setSecretId, setSecretKey, setSignMethod, toStringprotected final ProducerImpl producer
public void start()
throws MQClientException
public SendResult send(String queue, String msgBody) throws MQClientException, MQServerException
protected SendResult sendTransactionMsg(String queue, String msgBody, int firstQueryInterval) throws MQClientException, MQServerException
public SendResult send(String queue, String msgBody, int delaySeconds) throws MQClientException, MQServerException
public BatchSendResult batchSend(String queue, List<String> msgList) throws MQClientException, MQServerException
public BatchSendResult batchSend(String queue, List<String> msgList, int delaySeconds) throws MQClientException, MQServerException
protected BatchSendResult batchSendTransactionMsg(String queue, List<String> msgList, int firstQueryInterval) throws MQClientException, MQServerException
public void send(String queue, String msgBody, SendCallback callback) throws MQClientException, MQServerException
public void send(String queue, String msgBody, int delaySeconds, SendCallback callback) throws MQClientException, MQServerException
public void batchSend(String queue, List<String> msgList, BatchSendCallback callback) throws MQClientException, MQServerException
public void batchSend(String queue, List<String> msgList, int delaySeconds, BatchSendCallback callback) throws MQClientException, MQServerException
public PublishResult publish(String topic, String msgBody, String routeKey) throws MQClientException, MQServerException
public PublishResult publish(String topic, String msgBody) throws MQClientException, MQServerException
public PublishResult publish(String topic, String msgBody, List<String> tagList) throws MQClientException, MQServerException
public BatchPublishResult batchPublish(String topic, List<String> msgList, String routeKey) throws MQClientException, MQServerException
public BatchPublishResult batchPublish(String topic, List<String> msgList, List<String> tagList) throws MQClientException, MQServerException
public void publish(String topic, String msgBody, String routeKey, PublishCallback callback) throws MQClientException, MQServerException
public void publish(String topic, String msgBody, List<String> tagList, PublishCallback callback) throws MQClientException, MQServerException
public void batchPublish(String topic, List<String> msgList, String routeKey, BatchPublishCallback callback) throws MQClientException, MQServerException
public void batchPublish(String topic, List<String> msgList, List<String> tagList, BatchPublishCallback callback) throws MQClientException, MQServerException
public void shutdown()
Copyright © 2020. All rights reserved.