|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.aliyun.mns.client.DefaultMNSClient
public class DefaultMNSClient
| 构造方法摘要 | |
|---|---|
protected |
DefaultMNSClient(ServiceCredentials credentials,
ServiceClient serviceClient,
String endpoint)
|
|
DefaultMNSClient(String endpoint,
String accessId,
String accessKey)
使用指定的MNS Endpoint构造一个新的 MNSClient对象。 |
|
DefaultMNSClient(String endpoint,
String accessId,
String accessKey,
ClientConfiguration config)
使用指定的MNS Endpoint和配置构造一个新的 MNSClient对象。 |
| 方法摘要 | |
|---|---|
void |
addHeader(String key,
String value)
|
void |
close()
关闭 client |
CloudQueue |
createQueue(QueueMeta queueMeta)
创建队列 |
AsyncResult<String> |
createQueueAsync(QueueMeta queueMeta,
AsyncCallback<String> callback)
|
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 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public DefaultMNSClient(String endpoint,
String accessId,
String accessKey)
MNSClient对象。
endpoint - MNS服务的Endpoint。accessId - 访问MNS的Access ID。accessKey - 访问MNS的Access Key。
public DefaultMNSClient(String endpoint,
String accessId,
String accessKey,
ClientConfiguration config)
MNSClient对象。
endpoint - MNS服务的Endpoint。accessId - 访问MNS的Access ID。accessKey - 访问MNS的Access Key。config - 客户端配置 ClientConfiguration。
protected DefaultMNSClient(ServiceCredentials credentials,
ServiceClient serviceClient,
String endpoint)
| 方法详细信息 |
|---|
public void close()
MNSClient 复制的描述
MNSClient 中的 closepublic void open()
MNSClient 复制的描述
MNSClient 中的 openpublic boolean isOpen()
MNSClient 复制的描述
MNSClient 中的 isOpenpublic CloudQueue getQueueRef(String queueName)
MNSClient 复制的描述
MNSClient 中的 getQueueRef
public void addHeader(String key,
String value)
public AsyncResult<String> createQueueAsync(QueueMeta queueMeta,
AsyncCallback<String> callback)
public CloudQueue createQueue(QueueMeta queueMeta)
throws ClientException,
ServiceException
MNSClient 中的 createQueuequeueMeta - 队列属性
ClientException
ServiceException
public PagingListResult<String> listQueueURL(String prefix,
String marker,
Integer retNumber)
throws ClientException,
ServiceException
MNSClient 中的 listQueueURLprefix - 队列名前缀marker - 列举的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数
ClientException
ServiceException
public PagingListResult<QueueMeta> listQueue(String prefix,
String marker,
Integer retNumber)
throws ClientException,
ServiceException
MNSClient 中的 listQueueprefix - 队列名前缀marker - 列举的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数
ClientException
ServiceExceptionpublic CloudTopic getTopicRef(String topicName)
MNSClient 中的 getTopicReftopicName - topic name
public CloudTopic createTopic(TopicMeta meta)
MNSClient 中的 createTopicmeta - CloudTpoic的meta数据
public PagingListResult<TopicMeta> listTopic(String prefix,
String marker,
Integer retNumber)
throws ClientException,
ServiceException
MNSClient 中的 listTopicprefix - topic name前缀marker - topic的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数
ClientException
ServiceException
public PagingListResult<String> listTopicURL(String prefix,
String marker,
Integer retNumber)
throws ClientException,
ServiceException
MNSClient 中的 listTopicURLprefix - topic name前缀marker - topic的起始位置,""表示从第一个开始,也可以是前一次列举返回的markerretNumber - 最多返回的个数
ClientException
ServiceException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||