public class CMQClient extends Object
| 构造器和说明 |
|---|
CMQClient(NettyClientConfig nettyClientConfig,
CMQClientHandler cMQClientHandler,
ClientConfig clientConfig,
String clientId) |
| 限定符和类型 | 方法和说明 |
|---|---|
BatchDeleteResult |
batchDeleteMessage(List<String> accessList,
Cmq.CMQProto request,
long timeoutMillis,
CommunicationMode communicationMode,
BatchDeleteCallback callback) |
BatchPublishResult |
batchPublishMessage(List<String> accessList,
Cmq.CMQProto request,
long timeoutMillis,
CommunicationMode communicationMode,
BatchPublishCallback publishCallback,
int retryTimesWhenSendFailed,
ProducerImpl producer) |
BatchReceiveResult |
batchReceiveMessage(List<String> accessList,
Cmq.CMQProto request,
long timeoutMillis,
CommunicationMode communicationMode,
BatchReceiveCallback pullCallback) |
BatchSendResult |
batchSendMessage(List<String> accessList,
Cmq.CMQProto request,
long timeoutMillis,
CommunicationMode communicationMode,
BatchSendCallback sendCallback,
int retryTimesWhenSendFailed,
ProducerImpl producer) |
DeleteResult |
deleteMessage(List<String> accessList,
Cmq.CMQProto request,
long timeoutMillis,
CommunicationMode communicationMode,
DeleteCallback pullCallback) |
PublishResult |
publishMessage(List<String> accessList,
Cmq.CMQProto request,
long timeoutMillis,
CommunicationMode communicationMode,
PublishCallback publishCallback,
int retryTimesWhenSendFailed,
ProducerImpl producer) |
ReceiveResult |
receiveMessage(List<String> accessList,
Cmq.CMQProto request,
long timeoutMillis,
CommunicationMode communicationMode,
ReceiveCallback pullCallback) |
SendResult |
sendMessage(List<String> accessList,
Cmq.CMQProto request,
long timeoutMillis,
CommunicationMode communicationMode,
SendCallback sendCallback,
int retryTimesWhenSendFailed,
ProducerImpl producer) |
void |
shutdown() |
void |
start() |
public CMQClient(NettyClientConfig nettyClientConfig, CMQClientHandler cMQClientHandler, ClientConfig clientConfig, String clientId)
public void start()
public void shutdown()
public SendResult sendMessage(List<String> accessList, Cmq.CMQProto request, long timeoutMillis, CommunicationMode communicationMode, SendCallback sendCallback, int retryTimesWhenSendFailed, ProducerImpl producer) throws InterruptedException, RemoteException
public BatchSendResult batchSendMessage(List<String> accessList, Cmq.CMQProto request, long timeoutMillis, CommunicationMode communicationMode, BatchSendCallback sendCallback, int retryTimesWhenSendFailed, ProducerImpl producer) throws RemoteException, InterruptedException
public PublishResult publishMessage(List<String> accessList, Cmq.CMQProto request, long timeoutMillis, CommunicationMode communicationMode, PublishCallback publishCallback, int retryTimesWhenSendFailed, ProducerImpl producer) throws RemoteException, InterruptedException
public BatchPublishResult batchPublishMessage(List<String> accessList, Cmq.CMQProto request, long timeoutMillis, CommunicationMode communicationMode, BatchPublishCallback publishCallback, int retryTimesWhenSendFailed, ProducerImpl producer) throws RemoteException, InterruptedException
public ReceiveResult receiveMessage(List<String> accessList, Cmq.CMQProto request, long timeoutMillis, CommunicationMode communicationMode, ReceiveCallback pullCallback) throws RemoteException, InterruptedException
public BatchReceiveResult batchReceiveMessage(List<String> accessList, Cmq.CMQProto request, long timeoutMillis, CommunicationMode communicationMode, BatchReceiveCallback pullCallback) throws RemoteException, InterruptedException
public DeleteResult deleteMessage(List<String> accessList, Cmq.CMQProto request, long timeoutMillis, CommunicationMode communicationMode, DeleteCallback pullCallback) throws RemoteException, InterruptedException
public BatchDeleteResult batchDeleteMessage(List<String> accessList, Cmq.CMQProto request, long timeoutMillis, CommunicationMode communicationMode, BatchDeleteCallback callback) throws RemoteException, InterruptedException
Copyright © 2020. All rights reserved.