public class DefaultServiceBusTopicClientFactory extends Object implements ServiceBusTopicClientFactory
ServiceBusTopicClientFactory.
Client will be cached to improve performance| Modifier and Type | Field and Description |
|---|---|
protected String |
connectionString |
protected String |
namespace |
protected com.microsoft.azure.spring.cloud.context.core.api.ResourceManagerProvider |
resourceManagerProvider |
| Constructor and Description |
|---|
DefaultServiceBusTopicClientFactory(String connectionString) |
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.azure.servicebus.IMessageSender |
getOrCreateSender(String name)
Return a function which accepts service bus topic or queue name, then returns
IMessageSender |
com.microsoft.azure.servicebus.ISubscriptionClient |
getOrCreateSubscriptionClient(String topic,
String subscription)
Return a function which accepts service bus topic and subscription name, then returns
ISubscriptionClient |
void |
setNamespace(String namespace) |
void |
setResourceManagerProvider(com.microsoft.azure.spring.cloud.context.core.api.ResourceManagerProvider resourceManagerProvider) |
protected final String connectionString
protected String namespace
protected com.microsoft.azure.spring.cloud.context.core.api.ResourceManagerProvider resourceManagerProvider
public DefaultServiceBusTopicClientFactory(String connectionString)
public com.microsoft.azure.servicebus.ISubscriptionClient getOrCreateSubscriptionClient(String topic, String subscription)
ServiceBusTopicClientFactoryISubscriptionClientgetOrCreateSubscriptionClient in interface ServiceBusTopicClientFactorypublic com.microsoft.azure.servicebus.IMessageSender getOrCreateSender(String name)
ServiceBusSenderFactoryIMessageSendergetOrCreateSender in interface ServiceBusSenderFactorypublic void setResourceManagerProvider(com.microsoft.azure.spring.cloud.context.core.api.ResourceManagerProvider resourceManagerProvider)
public void setNamespace(String namespace)
Copyright © 2019 Microsoft. All rights reserved.