public interface ServiceBusContract extends com.microsoft.windowsazure.core.pipeline.jersey.JerseyFilterableService<ServiceBusContract>
| Modifier and Type | Method and Description |
|---|---|
CreateQueueResult |
createQueue(QueueInfo queueInfo)
Creates a queue.
|
CreateRuleResult |
createRule(String topicPath,
String subscriptionName,
RuleInfo rule)
Creates a rule.
|
CreateSubscriptionResult |
createSubscription(String topicPath,
SubscriptionInfo subscription)
Creates a subscription.
|
CreateTopicResult |
createTopic(TopicInfo topic)
Creates a topic.
|
void |
deleteMessage(BrokeredMessage message)
Deletes a message.
|
void |
deleteQueue(String queuePath)
Deletes a queue.
|
void |
deleteRule(String topicPath,
String subscriptionName,
String ruleName)
Deletes a rule.
|
void |
deleteSubscription(String topicPath,
String subscriptionName)
Deletes a subscription.
|
void |
deleteTopic(String topicPath)
Deletes a topic.
|
GetQueueResult |
getQueue(String queuePath)
Retrieves a queue.
|
GetRuleResult |
getRule(String topicPath,
String subscriptionName,
String ruleName)
Retrieves a rule.
|
GetSubscriptionResult |
getSubscription(String topicPath,
String subscriptionName)
Retrieves a subscription.
|
GetTopicResult |
getTopic(String topicPath)
Retrieves a topic.
|
ListQueuesResult |
listQueues()
Returns a list of queues.
|
ListQueuesResult |
listQueues(ListQueuesOptions options)
Returns a list of queues.
|
ListRulesResult |
listRules(String topicPath,
String subscriptionName)
Returns a list of rules.
|
ListRulesResult |
listRules(String topicPath,
String subscriptionName,
ListRulesOptions options)
Returns a list of rules.
|
ListSubscriptionsResult |
listSubscriptions(String topicPath)
Returns a list of subscriptions.
|
ListSubscriptionsResult |
listSubscriptions(String topicPath,
ListSubscriptionsOptions options)
Returns a list of subscriptions.
|
ListTopicsResult |
listTopics()
Returns a list of topics.
|
ListTopicsResult |
listTopics(ListTopicsOptions options)
Returns a list of topics.
|
ReceiveMessageResult |
receiveMessage(String path)
Receives a message.
|
ReceiveMessageResult |
receiveMessage(String path,
ReceiveMessageOptions options)
Receives a message using the specified receive message options.
|
ReceiveQueueMessageResult |
receiveQueueMessage(String queuePath)
Receives a queue message.
|
ReceiveQueueMessageResult |
receiveQueueMessage(String queuePath,
ReceiveMessageOptions options)
Receives a queue message using the specified receive message options.
|
ReceiveSubscriptionMessageResult |
receiveSubscriptionMessage(String topicPath,
String subscriptionName)
Receives a subscription message.
|
ReceiveSubscriptionMessageResult |
receiveSubscriptionMessage(String topicPath,
String subscriptionName,
ReceiveMessageOptions options)
Receives a subscription message using the specified receive message
options.
|
void |
renewQueueLock(String queueName,
String messageId,
String lockToken)
Renew queue lock.
|
void |
renewSubscriptionLock(String topicName,
String subscriptionName,
String messageId,
String lockToken)
Renew subscription lock.
|
void |
sendMessage(String path,
BrokeredMessage message)
Sends a message.
|
void |
sendQueueMessage(String queuePath,
BrokeredMessage message)
Sends a queue message.
|
void |
sendTopicMessage(String topicPath,
BrokeredMessage message)
Sends a topic message.
|
void |
unlockMessage(BrokeredMessage message)
Unlocks a message.
|
QueueInfo |
updateQueue(QueueInfo queueInfo)
Updates the information of a queue.
|
SubscriptionInfo |
updateSubscription(String topicName,
SubscriptionInfo subscriptionInfo)
Updates a subscription.
|
TopicInfo |
updateTopic(TopicInfo topicInfo)
Updates a topic.
|
void sendQueueMessage(String queuePath, BrokeredMessage message) throws com.microsoft.windowsazure.exception.ServiceException
queuePath - A String object that represents the name of the
queue to which the message will be sent.message - A Message object that represents the message to
send.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ReceiveQueueMessageResult receiveQueueMessage(String queuePath) throws com.microsoft.windowsazure.exception.ServiceException
queuePath - A String object that represents the name of the
queue from which to receive the message.ReceiveQueueMessageResult object that represents
the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ReceiveQueueMessageResult receiveQueueMessage(String queuePath, ReceiveMessageOptions options) throws com.microsoft.windowsazure.exception.ServiceException
queuePath - A String object that represents the name of the
queue from which to receive the message.options - A ReceiveMessageOptions object that represents
the receive message options.ReceiveQueueMessageResult object that represents
the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void sendTopicMessage(String topicPath, BrokeredMessage message) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic to which the message will be sent.message - A Message object that represents the message to
send.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ReceiveSubscriptionMessageResult receiveSubscriptionMessage(String topicPath, String subscriptionName) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic to receive.subscriptionName - A String object that represents the name of the
subscription from the message will be received.ReceiveSubscriptionMessageResult object that
represents the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ReceiveSubscriptionMessageResult receiveSubscriptionMessage(String topicPath, String subscriptionName, ReceiveMessageOptions options) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic to receive.subscriptionName - A String object that represents the name of the
subscription from the message will be received.options - A ReceiveMessageOptions object that represents
the receive message options.ReceiveSubscriptionMessageResult object that
represents the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void unlockMessage(BrokeredMessage message) throws com.microsoft.windowsazure.exception.ServiceException
message - A Message object that represents the message to
unlock.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void sendMessage(String path, BrokeredMessage message) throws com.microsoft.windowsazure.exception.ServiceException
path - A String object that represents the path to which
the message will be sent. This may be the value of a queuePath
or a topicPath.message - A Message object that represents the message to
send.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ReceiveMessageResult receiveMessage(String path) throws com.microsoft.windowsazure.exception.ServiceException
path - A String object that represents the path from
which a message will be received. This may either be the value
of queuePath or a combination of the topicPath +
"/subscriptions/" + subscriptionName.ReceiveSubscriptionMessageResult object that
represents the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ReceiveMessageResult receiveMessage(String path, ReceiveMessageOptions options) throws com.microsoft.windowsazure.exception.ServiceException
path - A String object that represents the path from
which a message will be received. This may either be the value
of queuePath or a combination of the topicPath +
"/subscriptions/" + subscriptionName.options - A ReceiveMessageOptions object that represents
the receive message options.ReceiveSubscriptionMessageResult object that
represents the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void deleteMessage(BrokeredMessage message) throws com.microsoft.windowsazure.exception.ServiceException
message - A Message object that represents the message to
delete.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.CreateQueueResult createQueue(QueueInfo queueInfo) throws com.microsoft.windowsazure.exception.ServiceException
queueInfo - A QueueInfo object that represents the queue to
create.CreateQueueResult object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void deleteQueue(String queuePath) throws com.microsoft.windowsazure.exception.ServiceException
queuePath - A String object that represents the name of the
queue to delete.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.GetQueueResult getQueue(String queuePath) throws com.microsoft.windowsazure.exception.ServiceException
queuePath - A String object that represents the name of the
queue to retrieve.GetQueueResult object that represents the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ListQueuesResult listQueues() throws com.microsoft.windowsazure.exception.ServiceException
ListQueuesResult object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ListQueuesResult listQueues(ListQueuesOptions options) throws com.microsoft.windowsazure.exception.ServiceException
options - A ListQueueOptions object that represents the
options to list the queue.ListQueuesResult object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.QueueInfo updateQueue(QueueInfo queueInfo) throws com.microsoft.windowsazure.exception.ServiceException
queueInfo - The information of a queue to be updated.QueueInfo object that represents the updated
queue.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.CreateTopicResult createTopic(TopicInfo topic) throws com.microsoft.windowsazure.exception.ServiceException
topic - A Topic object that represents the topic to
create.CreateTopicResult object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void deleteTopic(String topicPath) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
queue to delete.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.GetTopicResult getTopic(String topicPath) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic to retrieve.GetTopicResult object that represents the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ListTopicsResult listTopics() throws com.microsoft.windowsazure.exception.ServiceException
ListTopicsResult object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ListTopicsResult listTopics(ListTopicsOptions options) throws com.microsoft.windowsazure.exception.ServiceException
options - A ListTopicsOptions object that represents the
options to list the topic.ListTopicsResult object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.TopicInfo updateTopic(TopicInfo topicInfo) throws com.microsoft.windowsazure.exception.ServiceException
topicInfo - A TopicInfo object that represents the topic to
be updated.TopicInfo object that represents the update topic
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.CreateSubscriptionResult createSubscription(String topicPath, SubscriptionInfo subscription) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscription.subscription - A Subscription object that represents the
subscription to create.CreateSubscriptionResult object that represents
the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void deleteSubscription(String topicPath, String subscriptionName) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscription.subscriptionName - A String object that represents the name of the
subscription to delete.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.GetSubscriptionResult getSubscription(String topicPath, String subscriptionName) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscription.subscriptionName - A String object that represents the name of the
subscription to retrieve.GetSubscriptionResult object that represents the
result. A String object that represents the name of
the subscription to retrieve.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ListSubscriptionsResult listSubscriptions(String topicPath) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscriptions to retrieve.ListSubscriptionsResult object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ListSubscriptionsResult listSubscriptions(String topicPath, ListSubscriptionsOptions options) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscriptions to retrieve.options - A ListSubscriptionsOptions object that represents
the options to list subscriptions.ListSubscriptionsResult object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - the service exceptionSubscriptionInfo updateSubscription(String topicName, SubscriptionInfo subscriptionInfo) throws com.microsoft.windowsazure.exception.ServiceException
topicName - A String option which represents the name of the
topic.subscriptionInfo - A SubscriptionInfo option which represents the
information of the subscription.SubscriptionInfo object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.CreateRuleResult createRule(String topicPath, String subscriptionName, RuleInfo rule) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscription.subscriptionName - A String object that represents the name of the
subscription for which the rule will be created.rule - A Rule object that represents the rule to create.CreateRuleResult object that represents the
result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void deleteRule(String topicPath, String subscriptionName, String ruleName) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscription.subscriptionName - A String object that represents the name of the
subscription for which the rule will be deleted.ruleName - A String object that represents the name of the
rule to delete.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.GetRuleResult getRule(String topicPath, String subscriptionName, String ruleName) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscription.subscriptionName - A String object that represents the name of the
subscription for which the rule will be retrieved.ruleName - A String object that represents the name of the
rule to retrieve.GetRuleResult object that represents the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ListRulesResult listRules(String topicPath, String subscriptionName) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscription.subscriptionName - A String object that represents the name of the
subscription whose rules are being retrieved.ListRulesResult object that represents the result.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.ListRulesResult listRules(String topicPath, String subscriptionName, ListRulesOptions options) throws com.microsoft.windowsazure.exception.ServiceException
topicPath - A String object that represents the name of the
topic for the subscription.subscriptionName - A String object that represents the name of the
subscription whose rules are being retrieved.options - A ListRulesOptions object that represents the
options to retrieve rules.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void renewQueueLock(String queueName, String messageId, String lockToken) throws com.microsoft.windowsazure.exception.ServiceException
queueName - A String object that represents the name of the
queue.messageId - A String object that represents the ID of the
message.lockToken - A String object that represents the token of the
lock.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered.void renewSubscriptionLock(String topicName, String subscriptionName, String messageId, String lockToken) throws com.microsoft.windowsazure.exception.ServiceException
topicName - A String object that represents the name of the
topic.subscriptionName - The subscription name.messageId - A String object that represents the ID of the
message.lockToken - A String object that represents the token of the
lock.com.microsoft.windowsazure.exception.ServiceException - If a service exception is encountered./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/