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
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MQAdminImpl
public MQAdminImpl(MQClientFactory mQClientFactory)
createTopic
public void createTopic(String key,
String newTopic,
int queueNum)
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-2014. All Rights Reserved.