|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl
public class DefaultMQProducerImpl
生产者默认实现
| 字段摘要 | |
|---|---|
protected ExecutorService |
checkExecutor
|
protected BlockingQueue<Runnable> |
checkRequestQueue
事务相关 |
| 构造方法摘要 | |
|---|---|
DefaultMQProducerImpl(DefaultMQProducer defaultMQProducer)
|
|
| 方法摘要 | |
|---|---|
TransactionCheckListener |
checkListener()
|
void |
checkTransactionState(String addr,
MessageExt msg,
CheckTransactionStateRequestHeader header)
|
void |
createTopic(String key,
String newTopic,
int queueNum)
|
void |
destroyTransactionEnv()
|
long |
earliestMsgStoreTime(MessageQueue mq)
|
void |
executeCheckForbiddenHook(CheckForbiddenContext context)
|
void |
executeSendMessageHookAfter(SendMessageContext context)
|
void |
executeSendMessageHookBefore(SendMessageContext context)
|
List<MessageQueue> |
fetchPublishMessageQueues(String topic)
|
MQClientFactory |
getmQClientFactory()
|
Set<String> |
getPublishTopicList()
|
ConcurrentHashMap<String,TopicPublishInfo> |
getTopicPublishInfoTable()
|
int |
getZipCompressLevel()
|
boolean |
hasCheckForbiddenHook()
|
boolean |
hasSendMessageHook()
|
void |
initTransactionEnv()
|
boolean |
isPublishTopicNeedUpdate(String topic)
|
boolean |
isUnitMode()
|
long |
maxOffset(MessageQueue mq)
|
long |
minOffset(MessageQueue mq)
|
QueryResult |
queryMessage(String topic,
String key,
int maxNum,
long begin,
long end)
|
void |
registerCheckForbiddenHook(CheckForbiddenHook checkForbiddenHook)
|
void |
registerSendMessageHook(SendMessageHook hook)
|
long |
searchOffset(MessageQueue mq,
long timestamp)
|
SendResult |
send(Message msg)
DEFAULT SYNC ------------------------------------------------------- |
SendResult |
send(Message msg,
MessageQueue mq)
KERNEL SYNC ------------------------------------------------------- |
SendResult |
send(Message msg,
MessageQueueSelector selector,
Object arg)
SELECT SYNC ------------------------------------------------------- |
void |
send(Message msg,
MessageQueueSelector selector,
Object arg,
SendCallback sendCallback)
SELECT ASYNC ------------------------------------------------------- |
void |
send(Message msg,
MessageQueue mq,
SendCallback sendCallback)
KERNEL ASYNC ------------------------------------------------------- |
void |
send(Message msg,
SendCallback sendCallback)
DEFAULT ASYNC ------------------------------------------------------- |
TransactionSendResult |
sendMessageInTransaction(Message msg,
LocalTransactionExecuter tranExecuter,
Object arg)
|
void |
sendOneway(Message msg)
DEFAULT ONEWAY ------------------------------------------------------- |
void |
sendOneway(Message msg,
MessageQueue mq)
KERNEL ONEWAY ------------------------------------------------------- |
void |
sendOneway(Message msg,
MessageQueueSelector selector,
Object arg)
SELECT ONEWAY ------------------------------------------------------- |
void |
setZipCompressLevel(int zipCompressLevel)
|
void |
shutdown()
|
void |
shutdown(boolean shutdownFactory)
|
void |
start()
|
void |
start(boolean startFactory)
|
void |
updateTopicPublishInfo(String topic,
TopicPublishInfo info)
|
MessageExt |
viewMessage(String msgId)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected BlockingQueue<Runnable> checkRequestQueue
protected ExecutorService checkExecutor
| 构造方法详细信息 |
|---|
public DefaultMQProducerImpl(DefaultMQProducer defaultMQProducer)
| 方法详细信息 |
|---|
public boolean hasCheckForbiddenHook()
public void registerCheckForbiddenHook(CheckForbiddenHook checkForbiddenHook)
public void executeCheckForbiddenHook(CheckForbiddenContext context)
throws MQClientException
MQClientExceptionpublic void initTransactionEnv()
public void destroyTransactionEnv()
public boolean hasSendMessageHook()
public void registerSendMessageHook(SendMessageHook hook)
public void executeSendMessageHookBefore(SendMessageContext context)
public void executeSendMessageHookAfter(SendMessageContext context)
public void start()
throws MQClientException
MQClientException
public void start(boolean startFactory)
throws MQClientException
MQClientExceptionpublic void shutdown()
public void shutdown(boolean shutdownFactory)
public Set<String> getPublishTopicList()
MQProducerInner 中的 getPublishTopicListpublic boolean isPublishTopicNeedUpdate(String topic)
MQProducerInner 中的 isPublishTopicNeedUpdatepublic TransactionCheckListener checkListener()
MQProducerInner 中的 checkListener
public void checkTransactionState(String addr,
MessageExt msg,
CheckTransactionStateRequestHeader header)
MQProducerInner 中的 checkTransactionState
public void updateTopicPublishInfo(String topic,
TopicPublishInfo info)
MQProducerInner 中的 updateTopicPublishInfopublic boolean isUnitMode()
MQProducerInner 中的 isUnitMode
public void createTopic(String key,
String newTopic,
int queueNum)
throws MQClientException
MQClientException
public List<MessageQueue> fetchPublishMessageQueues(String topic)
throws MQClientException
MQClientException
public long searchOffset(MessageQueue mq,
long timestamp)
throws MQClientException
MQClientException
public long maxOffset(MessageQueue mq)
throws MQClientException
MQClientException
public long minOffset(MessageQueue mq)
throws MQClientException
MQClientException
public long earliestMsgStoreTime(MessageQueue mq)
throws MQClientException
MQClientException
public MessageExt viewMessage(String msgId)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
RemotingException
MQBrokerException
InterruptedException
MQClientException
public QueryResult queryMessage(String topic,
String key,
int maxNum,
long begin,
long end)
throws MQClientException,
InterruptedException
MQClientException
InterruptedException
public void send(Message msg,
SendCallback sendCallback)
throws MQClientException,
RemotingException,
InterruptedException
MQClientException
RemotingException
InterruptedException
public void sendOneway(Message msg)
throws MQClientException,
RemotingException,
InterruptedException
MQClientException
RemotingException
InterruptedException
public SendResult send(Message msg,
MessageQueue mq)
throws MQClientException,
RemotingException,
MQBrokerException,
InterruptedException
MQClientException
RemotingException
MQBrokerException
InterruptedException
public void send(Message msg,
MessageQueue mq,
SendCallback sendCallback)
throws MQClientException,
RemotingException,
InterruptedException
MQClientException
RemotingException
InterruptedException
public void sendOneway(Message msg,
MessageQueue mq)
throws MQClientException,
RemotingException,
InterruptedException
MQClientException
RemotingException
InterruptedException
public SendResult send(Message msg,
MessageQueueSelector selector,
Object arg)
throws MQClientException,
RemotingException,
MQBrokerException,
InterruptedException
MQClientException
RemotingException
MQBrokerException
InterruptedException
public void send(Message msg,
MessageQueueSelector selector,
Object arg,
SendCallback sendCallback)
throws MQClientException,
RemotingException,
InterruptedException
MQClientException
RemotingException
InterruptedException
public void sendOneway(Message msg,
MessageQueueSelector selector,
Object arg)
throws MQClientException,
RemotingException,
InterruptedException
MQClientException
RemotingException
InterruptedException
public TransactionSendResult sendMessageInTransaction(Message msg,
LocalTransactionExecuter tranExecuter,
Object arg)
throws MQClientException
MQClientException
public SendResult send(Message msg)
throws MQClientException,
RemotingException,
MQBrokerException,
InterruptedException
MQClientException
RemotingException
MQBrokerException
InterruptedExceptionpublic ConcurrentHashMap<String,TopicPublishInfo> getTopicPublishInfoTable()
public MQClientFactory getmQClientFactory()
public int getZipCompressLevel()
public void setZipCompressLevel(int zipCompressLevel)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||