public interface MNSClient
| Modifier and Type | Method and Description |
|---|---|
void |
close()
关闭 client, close之后这个client的资源可能随时被释放
|
CloudPullTopic |
createPullTopic(TopicMeta topicMeta,
Vector<String> queueNameList)
Creates cloud pull topic.
|
CloudPullTopic |
createPullTopic(TopicMeta topicMeta,
Vector<String> queueNameList,
boolean needCreateQueue,
QueueMeta queueMetaTemplate)
Creates cloud pull topic.
|
CloudPullTopic |
createPullTopic(TopicMeta topicMeta,
Vector<String> queueNameList,
boolean needCreateQueue,
QueueMeta queueMetaTemplate,
Vector<String> tagList)
Creates cloud pull topic.
|
CloudQueue |
createQueue(QueueMeta queue)
创建队列
|
CloudTopic |
createTopic(TopicMeta meta)
根据Topic的meta数据,创建CloudTopic对象,用于后续的消息发送等
|
TransactionQueue |
createTransQueue(QueueMeta queueMeta)
Deprecated.
|
TransactionQueue |
createTransQueue(QueueMeta queueMeta,
TransactionChecker checker)
Deprecated.
|
TransactionQueue |
createTransQueue(QueueMeta queueMeta,
TransactionChecker checker,
long lifeTime,
long delayTime)
Deprecated.
|
AccountAttributes |
GetAccountAttributes()
获取当前用户的账号级别属性
|
CloudQueue |
getQueueRef(String queueName)
根据队列的URL创建CloudQueue对象,后于后续对改对象的创建、查询等
|
CloudTopic |
getTopicRef(String topicName)
根据Tpoic的URL创建CloudTopic对象,后于后续对改对象的创建、查询等
|
TransactionQueue |
getTransQueueRef(String queueName,
TransactionChecker checker)
Deprecated.
|
boolean |
isOpen()
检查client是否为打开状态
|
PagingListResult<QueueMeta> |
listQueue(String prefix,
String marker,
Integer retNumber)
列举队列
|
PagingListResult<String> |
listQueueURL(String prefix,
String marker,
Integer retNumber)
列举队列
|
PagingListResult<TopicMeta> |
listTopic(String prefix,
String marker,
Integer retNumber) |
PagingListResult<String> |
listTopicURL(String prefix,
String marker,
Integer retNumber) |
OpenServiceResponse |
openService()
开通 mns
|
void |
SetAccountAttributes(AccountAttributes accountAttributes)
设置当前用户的账号级别属性
|
void close()
boolean isOpen()
void SetAccountAttributes(AccountAttributes accountAttributes) throws ServiceException, ClientException
accountAttributes - objectServiceException - exceptionClientException - exceptionAccountAttributes GetAccountAttributes() throws ServiceException, ClientException
ServiceException - exceptionClientException - exceptionCloudQueue getQueueRef(String queueName)
queueName - exceptionCloudQueue createQueue(QueueMeta queue) throws ClientException, ServiceException
queue - 队列属性ClientException - exceptionServiceException - exception@Deprecated TransactionQueue getTransQueueRef(String queueName, TransactionChecker checker)
queueName - queueNamechecker - TransactionChecker to check the transaction message status.@Deprecated TransactionQueue createTransQueue(QueueMeta queueMeta, TransactionChecker checker, long lifeTime, long delayTime) throws ClientException, ServiceException
delayTime should be bigger than lifetime to make sure that that message will not be visible to consumer by default.
queueMeta - queue properties.checker - TransactionChecker to check the transaction message status.lifeTime - message life time in secondsdelayTime - message delay time in secondsClientException - exceptionServiceException - exception
The product no longer supports this function@Deprecated TransactionQueue createTransQueue(QueueMeta queueMeta, TransactionChecker checker) throws ClientException, ServiceException
queueMeta - queue properties.checker - TransactionChecker to check the transaction message status.ClientException - exceptionServiceException - exception
The product no longer supports this functionCloudPullTopic createPullTopic(TopicMeta topicMeta, Vector<String> queueNameList, boolean needCreateQueue, QueueMeta queueMetaTemplate) throws ClientException, ServiceException
topicMeta - topic properties.queueNameList - the queue name list which are going to be endpoint of new created topic.needCreateQueue - flag to indicate that if we need to create the queue in the queueNameList.queueMetaTemplate - the queueMeta template used to create queues in queueNamelist if need.ClientException - exceptionServiceException - exceptionCloudPullTopic createPullTopic(TopicMeta topicMeta, Vector<String> queueNameList, boolean needCreateQueue, QueueMeta queueMetaTemplate, Vector<String> tagList) throws ClientException, ServiceException
topicMeta - topic properties.queueNameList - the queue name list which are going to be endpoint of new created topic.needCreateQueue - flag to indicate that if we need to create the queue in the queueNameList.queueMetaTemplate - the queueMeta template used to create queues in queueNamelist if need.tagList - the filter tag list for each consumer queue.ClientException - exceptionServiceException - exceptionCloudPullTopic createPullTopic(TopicMeta topicMeta, Vector<String> queueNameList) throws ClientException, ServiceException
topicMeta - topic properties.queueNameList - the queue name list which are going to be endpoint of new created topic.ClientException - exceptionServiceException - exception@Deprecated TransactionQueue createTransQueue(QueueMeta queueMeta) throws ClientException, ServiceException
queueMeta - queue properties.ClientException - exceptionServiceException - exception
The product no longer supports this functionPagingListResult<QueueMeta> listQueue(String prefix, String marker, Integer retNumber) throws ClientException, ServiceException
prefix - 队列名前缀marker - 列举的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数ClientException - exceptionServiceException - exceptionPagingListResult<String> listQueueURL(String prefix, String marker, Integer retNumber) throws ClientException, ServiceException
prefix - 队列名前缀marker - 列举的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数ClientException - exceptionServiceException - exceptionCloudTopic getTopicRef(String topicName)
topicName - topic nameCloudTopic createTopic(TopicMeta meta)
meta - CloudTpoic的meta数据PagingListResult<TopicMeta> listTopic(String prefix, String marker, Integer retNumber) throws ClientException, ServiceException
prefix - topic name前缀marker - topic的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数ClientException - exceptionServiceException - exceptionPagingListResult<String> listTopicURL(String prefix, String marker, Integer retNumber) throws ClientException, ServiceException
prefix - topic name前缀marker - topic的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数ClientException - exceptionServiceException - exceptionOpenServiceResponse openService()
Copyright © 2024. All Rights Reserved.