com.alibaba.rocketmq.client.impl
类 MQAdminImpl
java.lang.Object
com.alibaba.rocketmq.client.impl.MQAdminImpl
public class MQAdminImpl
- extends Object
管理类接口实现
- 从以下版本开始:
- 2013-7-24
- 作者:
- shijia.wxr
|
方法摘要 |
void |
createTopic(String key,
String newTopic,
int queueNum)
|
void |
createTopic(String key,
String newTopic,
int queueNum,
int topicSysFlag)
|
long |
earliestMsgStoreTime(MessageQueue mq)
|
List<MessageQueue> |
fetchPublishMessageQueues(String topic)
|
Set<MessageQueue> |
fetchSubscribeMessageQueues(String topic)
|
long |
maxOffset(MessageQueue mq)
|
long |
minOffset(MessageQueue mq)
|
QueryResult |
queryMessage(String topic,
String key,
int maxNum,
long begin,
long end)
|
long |
searchOffset(MessageQueue mq,
long timestamp)
|
MessageExt |
viewMessage(String msgId)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MQAdminImpl
public MQAdminImpl(MQClientInstance mQClientFactory)
createTopic
public void createTopic(String key,
String newTopic,
int queueNum)
throws MQClientException
- 抛出:
MQClientException
createTopic
public void createTopic(String key,
String newTopic,
int queueNum,
int topicSysFlag)
throws MQClientException
- 抛出:
MQClientException
fetchPublishMessageQueues
public List<MessageQueue> fetchPublishMessageQueues(String topic)
throws MQClientException
- 抛出:
MQClientException
fetchSubscribeMessageQueues
public Set<MessageQueue> fetchSubscribeMessageQueues(String topic)
throws MQClientException
- 抛出:
MQClientException
searchOffset
public long searchOffset(MessageQueue mq,
long timestamp)
throws MQClientException
- 抛出:
MQClientException
maxOffset
public long maxOffset(MessageQueue mq)
throws MQClientException
- 抛出:
MQClientException
minOffset
public long minOffset(MessageQueue mq)
throws MQClientException
- 抛出:
MQClientException
earliestMsgStoreTime
public long earliestMsgStoreTime(MessageQueue mq)
throws MQClientException
- 抛出:
MQClientException
viewMessage
public MessageExt viewMessage(String msgId)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
- 抛出:
RemotingException
MQBrokerException
InterruptedException
MQClientException
queryMessage
public QueryResult queryMessage(String topic,
String key,
int maxNum,
long begin,
long end)
throws MQClientException,
InterruptedException
- 抛出:
MQClientException
InterruptedException
Copyright © 2012-2015. All Rights Reserved.