|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface MNSClient
| 方法摘要 | |
|---|---|
void |
close()
关闭 client |
CloudQueue |
createQueue(QueueMeta queue)
创建队列 |
CloudTopic |
createTopic(TopicMeta meta)
根据Topic的meta数据,创建CloudTopic对象,用于后续的消息发送等 |
CloudQueue |
getQueueRef(String queueName)
根据队列的URL创建CloudQueue对象,后于后续对改对象的创建、查询等 |
CloudTopic |
getTopicRef(String topicName)
根据Tpoic的URL创建CloudTopic对象,后于后续对改对象的创建、查询等 |
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)
|
void |
open()
打开 client |
| 方法详细信息 |
|---|
void close()
void open()
boolean isOpen()
CloudQueue getQueueRef(String queueName)
queueName -
CloudQueue createQueue(QueueMeta queue)
throws ClientException,
ServiceException
queue - 队列属性
ClientException
ServiceException
PagingListResult<QueueMeta> listQueue(String prefix,
String marker,
Integer retNumber)
throws ClientException,
ServiceException
prefix - 队列名前缀marker - 列举的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数
ClientException
ServiceException
PagingListResult<String> listQueueURL(String prefix,
String marker,
Integer retNumber)
throws ClientException,
ServiceException
prefix - 队列名前缀marker - 列举的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数
ClientException
ServiceExceptionCloudTopic getTopicRef(String topicName)
topicName - topic name
CloudTopic 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
ServiceException
PagingListResult<String> listTopicURL(String prefix,
String marker,
Integer retNumber)
throws ClientException,
ServiceException
prefix - topic name前缀marker - topic的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数
ClientException
ServiceException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||