ClientFactory Class
- java.
lang. Object - com.
microsoft. azure. servicebus. ClientFactory
- com.
public class ClientFactory
Utility class for creating message senders and receivers.
Method Summary
Modifier and Type | Method and Description |
---|---|
IMessage |
acceptSessionFromConnectionString(String amqpConnectionString, String sessionId)
Accept a IMessageSession in default PEEKLOCK mode from service bus connection string with specified session id. Session Id can be null, if null, service will return the first available session. |
IMessage |
acceptSessionFromConnectionString(String amqpConnectionString, String sessionId, ReceiveMode receiveMode)
Accept a IMessageSession from service bus connection string with specified session id. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromConnectionStringAsync(String amqpConnectionString, String sessionId)
Accept a IMessageSession in default PEEKLOCK mode asynchronously from service bus connection string with specified session id. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromConnectionStringAsync(String amqpConnectionString, String sessionId, ReceiveMode receiveMode)
Accept a IMessageSession asynchronously from service bus connection string with specified session id. Session Id can be null, if null, service will return the first available session. |
IMessage |
acceptSessionFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder, String sessionId)
Accept a IMessageSession in default PEEKLOCK mode from service bus connection string builder with specified session id. Session Id can be null, if null, service will return the first available session. |
IMessage |
acceptSessionFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder, String sessionId, ReceiveMode receiveMode)
Accept a IMessageSession from service bus connection string builder with specified session id. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromConnectionStringBuilderAsync(ConnectionStringBuilder amqpConnectionStringBuilder, String sessionId)
Accept a IMessageSession in default PEEKLOCK mode asynchronously from service bus connection string builder with specified session id. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromConnectionStringBuilderAsync(ConnectionStringBuilder amqpConnectionStringBuilder, String sessionId, ReceiveMode receiveMode)
Accept a IMessageSession asynchronously from service bus connection string builder with specified session id. Session Id can be null, if null, service will return the first available session. |
IMessage |
acceptSessionFromEntityPath(MessagingFactory messagingFactory, String entityPath, String sessionId)
Accept a IMessageSession from service bus using the client settings with specified session id. Session Id can be null, if null, service will return the first available session. |
IMessage |
acceptSessionFromEntityPath(MessagingFactory messagingFactory, String entityPath, String sessionId, ReceiveMode receiveMode)
Accept a IMessageSession from service bus using the client settings with specified session id. Session Id can be null, if null, service will return the first available session. |
IMessage |
acceptSessionFromEntityPath(String namespaceName, String entityPath, String sessionId, ClientSettings clientSettings)
Accept a IMessageSession from service bus using the client settings with specified session id in PeekLock mode. Session Id can be null, if null, service will return the first available session. |
IMessage |
acceptSessionFromEntityPath(String namespaceName, String entityPath, String sessionId, ClientSettings clientSettings, ReceiveMode receiveMode)
Accept a IMessageSession from service bus using the client settings with specified session id. Session Id can be null, if null, service will return the first available session. |
IMessage |
acceptSessionFromEntityPath(URI namespaceEndpointURI, String entityPath, String sessionId, ClientSettings clientSettings)
Accept a IMessageSession from service bus using the client settings with specified session id in PeekLock mode. Session Id can be null, if null, service will return the first available session. |
IMessage |
acceptSessionFromEntityPath(URI namespaceEndpointURI, String entityPath, String sessionId, ClientSettings clientSettings, ReceiveMode receiveMode)
Accept a IMessageSession from service bus using the client settings with specified session id. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromEntityPathAsync(MessagingFactory messagingFactory, String entityPath, String sessionId)
Asynchronously accepts a session from service bus using the client settings. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromEntityPathAsync(MessagingFactory messagingFactory, String entityPath, String sessionId, ReceiveMode receiveMode)
Asynchronously accepts a session from service bus using the client settings. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromEntityPathAsync(String namespaceName, String entityPath, String sessionId, ClientSettings clientSettings)
Asynchronously accepts a session in PeekLock mode from service bus using the client settings. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromEntityPathAsync(String namespaceName, String entityPath, String sessionId, ClientSettings clientSettings, ReceiveMode receiveMode)
Asynchronously accepts a session from service bus using the client settings. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromEntityPathAsync(URI namespaceEndpointURI, String entityPath, String sessionId, ClientSettings clientSettings)
Asynchronously accepts a session in PeekLock mode from service bus using the client settings. Session Id can be null, if null, service will return the first available session. |
CompletableFuture<IMessage |
acceptSessionFromEntityPathAsync(URI namespaceEndpointURI, String entityPath, String sessionId, ClientSettings clientSettings, ReceiveMode receiveMode)
Asynchronously accepts a session from service bus using the client settings. Session Id can be null, if null, service will return the first available session. |
IMessage |
createMessageReceiverFromConnectionString(String amqpConnectionString)
Create IMessageReceiver in default PEEKLOCK mode from service bus connection string with Shared Access Signatures |
IMessage |
createMessageReceiverFromConnectionString(String amqpConnectionString, ReceiveMode receiveMode)
Create IMessageReceiver in default PEEKLOCK mode from service bus connection string with Shared Access Signatures |
CompletableFuture<IMessage |
createMessageReceiverFromConnectionStringAsync(String amqpConnectionString)
Create IMessageReceiver in default PEEKLOCK mode asynchronously from connection string with Shared Access Signatures |
CompletableFuture<IMessage |
createMessageReceiverFromConnectionStringAsync(String amqpConnectionString, ReceiveMode receiveMode)
Create IMessageReceiver in default PEEKLOCK mode asynchronously from connection string with Shared Access Signatures |
IMessage |
createMessageReceiverFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder)
Create IMessageReceiver in default PEEKLOCK mode from ConnectionStringBuilder
|
IMessage |
createMessageReceiverFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder, ReceiveMode receiveMode)
Create IMessageReceiver from ConnectionStringBuilder
|
CompletableFuture<IMessage |
createMessageReceiverFromConnectionStringBuilderAsync(ConnectionStringBuilder amqpConnectionStringBuilder)
Create IMessageReceiver in default PEEKLOCK mode asynchronously from ConnectionStringBuilder |
CompletableFuture<IMessage |
createMessageReceiverFromConnectionStringBuilderAsync(ConnectionStringBuilder amqpConnectionStringBuilder, ReceiveMode receiveMode)
Create IMessageReceiver asynchronously from ConnectionStringBuilder |
IMessage |
createMessageReceiverFromEntityPath(MessagingFactory messagingFactory, String entityPath)
Creates a message receiver to the entity. |
IMessage |
createMessageReceiverFromEntityPath(MessagingFactory messagingFactory, String entityPath, ReceiveMode receiveMode)
Creates a message receiver to the entity. |
IMessage |
createMessageReceiverFromEntityPath(String namespaceName, String entityPath, ClientSettings clientSettings)
Creates a message receiver to the entity using the client settings in PeekLock mode |
IMessage |
createMessageReceiverFromEntityPath(String namespaceName, String entityPath, ClientSettings clientSettings, ReceiveMode receiveMode)
Creates a message receiver to the entity using the client settings. |
IMessage |
createMessageReceiverFromEntityPath(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings)
Creates a message receiver to the entity using the client settings in PeekLock mode |
IMessage |
createMessageReceiverFromEntityPath(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings, ReceiveMode receiveMode)
Creates a message receiver to the entity using the client settings. |
CompletableFuture<IMessage |
createMessageReceiverFromEntityPathAsync(MessagingFactory messagingFactory, String entityPath)
Asynchronously creates a new message receiver to the entity on the messagingFactory. |
CompletableFuture<IMessage |
createMessageReceiverFromEntityPathAsync(MessagingFactory messagingFactory, String entityPath, ReceiveMode receiveMode)
Asynchronously creates a new message receiver to the entity on the messagingFactory. |
CompletableFuture<IMessage |
createMessageReceiverFromEntityPathAsync(String namespaceName, String entityPath, ClientSettings clientSettings)
Asynchronously creates a message receiver to the entity using the client settings in PeekLock mode |
CompletableFuture<IMessage |
createMessageReceiverFromEntityPathAsync(String namespaceName, String entityPath, ClientSettings clientSettings, ReceiveMode receiveMode)
Asynchronously creates a message receiver to the entity using the client settings |
CompletableFuture<IMessage |
createMessageReceiverFromEntityPathAsync(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings)
Asynchronously creates a message receiver to the entity using the client settings in PeekLock mode |
CompletableFuture<IMessage |
createMessageReceiverFromEntityPathAsync(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings, ReceiveMode receiveMode)
Asynchronously creates a message receiver to the entity using the client settings |
IMessage |
createMessageSenderFromConnectionString(String amqpConnectionString)
Create message sender from service bus connection string with Shared Access Signatures |
CompletableFuture<IMessage |
createMessageSenderFromConnectionStringAsync(String amqpConnectionString)
Create message sender asynchronously from connection string with Shared Access Signatures |
IMessage |
createMessageSenderFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder)
Create message sender from ConnectionStringBuilder
|
CompletableFuture<IMessage |
createMessageSenderFromConnectionStringBuilderAsync(ConnectionStringBuilder amqpConnectionStringBuilder)
Create message sender asynchronously from ConnectionStringBuilder |
IMessage |
createMessageSenderFromEntityPath(MessagingFactory messagingFactory, String entityPath)
Creates a message sender to the entity. |
IMessage |
createMessageSenderFromEntityPath(String namespaceName, String entityPath, ClientSettings clientSettings)
Creates a message sender to the entity using the client settings. |
IMessage |
createMessageSenderFromEntityPath(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings)
Creates a message sender to the entity using the client settings. |
CompletableFuture<IMessage |
createMessageSenderFromEntityPathAsync(MessagingFactory messagingFactory, String entityPath)
Creates a message sender asynchronously to the entity using the MessagingFactory |
CompletableFuture<IMessage |
createMessageSenderFromEntityPathAsync(String namespaceName, String entityPath, ClientSettings clientSettings)
Creates a message sender asynchronously to the entity using the client settings. |
CompletableFuture<IMessage |
createMessageSenderFromEntityPathAsync(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings)
Creates a message sender asynchronously to the entity using the client settings. |
IMessage |
createTransferMessageSenderFromEntityPath(MessagingFactory messagingFactory, String entityPath, String viaEntityPath)
Creates a transfer message sender. This sender sends message to destination entity via another entity. This is mainly to be used when sending messages in a transaction. When messages need to be sent across entities in a single transaction, this can be used to ensure all the messages land initially in the same entity/partition for local transactions, and then let service bus handle transferring the message to the actual destination. |
CompletableFuture<IMessage |
createTransferMessageSenderFromEntityPathAsync(MessagingFactory messagingFactory, String entityPath, String viaEntityPath)
Creates a transfer message sender asynchronously. This sender sends message to destination entity via another entity. This is mainly to be used when sending messages in a transaction. When messages need to be sent across entities in a single transaction, this can be used to ensure all the messages land initially in the same entity/partition for local transactions, and then let service bus handle transferring the message to the actual destination. |
Method Details
acceptSessionFromConnectionString
public static IMessageSession acceptSessionFromConnectionString(String amqpConnectionString, String sessionId)
Accept a IMessageSession in default PEEKLOCK mode from service bus connection string with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
IMessageSession instance
Throws:
acceptSessionFromConnectionString
public static IMessageSession acceptSessionFromConnectionString(String amqpConnectionString, String sessionId, ReceiveMode receiveMode)
Accept a IMessageSession from service bus connection string with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
ReceiveMode PeekLock or ReceiveAndDelete
Returns:
IMessageSession instance
Throws:
acceptSessionFromConnectionStringAsync
public static CompletableFuture
Accept a IMessageSession in default PEEKLOCK mode asynchronously from service bus connection string with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
acceptSessionFromConnectionStringAsync
public static CompletableFuture
Accept a IMessageSession asynchronously from service bus connection string with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
ReceiveMode PeekLock or ReceiveAndDelete
Returns:
acceptSessionFromConnectionStringBuilder
public static IMessageSession acceptSessionFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder, String sessionId)
Accept a IMessageSession in default PEEKLOCK mode from service bus connection string builder with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
IMessageSession instance
Throws:
acceptSessionFromConnectionStringBuilder
public static IMessageSession acceptSessionFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder, String sessionId, ReceiveMode receiveMode)
Accept a IMessageSession from service bus connection string builder with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
ReceiveMode PeekLock or ReceiveAndDelete
Returns:
IMessageSession instance
Throws:
acceptSessionFromConnectionStringBuilderAsync
public static CompletableFuture
Accept a IMessageSession in default PEEKLOCK mode asynchronously from service bus connection string builder with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
acceptSessionFromConnectionStringBuilderAsync
public static CompletableFuture
Accept a IMessageSession asynchronously from service bus connection string builder with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
ReceiveMode PeekLock or ReceiveAndDelete
Returns:
acceptSessionFromEntityPath
public static IMessageSession acceptSessionFromEntityPath(MessagingFactory messagingFactory, String entityPath, String sessionId)
Accept a IMessageSession from service bus using the client settings with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
Throws:
acceptSessionFromEntityPath
public static IMessageSession acceptSessionFromEntityPath(MessagingFactory messagingFactory, String entityPath, String sessionId, ReceiveMode receiveMode)
Accept a IMessageSession from service bus using the client settings with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
Throws:
acceptSessionFromEntityPath
public static IMessageSession acceptSessionFromEntityPath(String namespaceName, String entityPath, String sessionId, ClientSettings clientSettings)
Accept a IMessageSession from service bus using the client settings with specified session id in PeekLock mode. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
Throws:
acceptSessionFromEntityPath
public static IMessageSession acceptSessionFromEntityPath(String namespaceName, String entityPath, String sessionId, ClientSettings clientSettings, ReceiveMode receiveMode)
Accept a IMessageSession from service bus using the client settings with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
Throws:
acceptSessionFromEntityPath
public static IMessageSession acceptSessionFromEntityPath(URI namespaceEndpointURI, String entityPath, String sessionId, ClientSettings clientSettings)
Accept a IMessageSession from service bus using the client settings with specified session id in PeekLock mode. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
Throws:
acceptSessionFromEntityPath
public static IMessageSession acceptSessionFromEntityPath(URI namespaceEndpointURI, String entityPath, String sessionId, ClientSettings clientSettings, ReceiveMode receiveMode)
Accept a IMessageSession from service bus using the client settings with specified session id. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
Throws:
acceptSessionFromEntityPathAsync
public static CompletableFuture
Asynchronously accepts a session from service bus using the client settings. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
acceptSessionFromEntityPathAsync
public static CompletableFuture
Asynchronously accepts a session from service bus using the client settings. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
acceptSessionFromEntityPathAsync
public static CompletableFuture
Asynchronously accepts a session in PeekLock mode from service bus using the client settings. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
acceptSessionFromEntityPathAsync
public static CompletableFuture
Asynchronously accepts a session from service bus using the client settings. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
acceptSessionFromEntityPathAsync
public static CompletableFuture
Asynchronously accepts a session in PeekLock mode from service bus using the client settings. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
acceptSessionFromEntityPathAsync
public static CompletableFuture
Asynchronously accepts a session from service bus using the client settings. Session Id can be null, if null, service will return the first available session.
Parameters:
Returns:
createMessageReceiverFromConnectionString
public static IMessageReceiver createMessageReceiverFromConnectionString(String amqpConnectionString)
Create IMessageReceiver in default PEEKLOCK mode from service bus connection string with Shared Access Signatures
Parameters:
Returns:
IMessageReceiver instance
Throws:
createMessageReceiverFromConnectionString
public static IMessageReceiver createMessageReceiverFromConnectionString(String amqpConnectionString, ReceiveMode receiveMode)
Create IMessageReceiver in default PEEKLOCK mode from service bus connection string with Shared Access Signatures
Parameters:
ReceiveMode PeekLock or ReceiveAndDelete
Returns:
IMessageReceiver instance
Throws:
createMessageReceiverFromConnectionStringAsync
public static CompletableFuture
Create IMessageReceiver in default PEEKLOCK mode asynchronously from connection string with Shared Access Signatures
Parameters:
Returns:
createMessageReceiverFromConnectionStringAsync
public static CompletableFuture
Create IMessageReceiver in default PEEKLOCK mode asynchronously from connection string with Shared Access Signatures
Parameters:
ReceiveMode PeekLock or ReceiveAndDelete
Returns:
createMessageReceiverFromConnectionStringBuilder
public static IMessageReceiver createMessageReceiverFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder)
Create IMessageReceiver in default PEEKLOCK mode from ConnectionStringBuilder
IMessageReceiver messageReceiver = ClientFactory.createMessageReceiverFromConnectionStringBuilder(new ConnectionStringBuilder(connectionString, queueName));
Parameters:
ConnectionStringBuilder
Returns:
Throws:
createMessageReceiverFromConnectionStringBuilder
public static IMessageReceiver createMessageReceiverFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder, ReceiveMode receiveMode)
Create IMessageReceiver from ConnectionStringBuilder
IMessageReceiver messageReceiver = ClientFactory.createMessageReceiverFromConnectionStringBuilder(new ConnectionStringBuilder(connectionString, queueName), ReceiveMode.PEEKLOCK);
Parameters:
ConnectionStringBuilder
ReceiveMode PeekLock or ReceiveAndDelete
Returns:
Throws:
createMessageReceiverFromConnectionStringBuilderAsync
public static CompletableFuture
Create IMessageReceiver in default PEEKLOCK mode asynchronously from ConnectionStringBuilder
Parameters:
Returns:
createMessageReceiverFromConnectionStringBuilderAsync
public static CompletableFuture
Create IMessageReceiver asynchronously from ConnectionStringBuilder
Parameters:
ReceiveMode PeekLock or ReceiveAndDelete
Returns:
createMessageReceiverFromEntityPath
public static IMessageReceiver createMessageReceiverFromEntityPath(MessagingFactory messagingFactory, String entityPath)
Creates a message receiver to the entity.
Parameters:
Returns:
Throws:
createMessageReceiverFromEntityPath
public static IMessageReceiver createMessageReceiverFromEntityPath(MessagingFactory messagingFactory, String entityPath, ReceiveMode receiveMode)
Creates a message receiver to the entity.
Parameters:
Returns:
Throws:
createMessageReceiverFromEntityPath
public static IMessageReceiver createMessageReceiverFromEntityPath(String namespaceName, String entityPath, ClientSettings clientSettings)
Creates a message receiver to the entity using the client settings in PeekLock mode
Parameters:
Returns:
Throws:
createMessageReceiverFromEntityPath
public static IMessageReceiver createMessageReceiverFromEntityPath(String namespaceName, String entityPath, ClientSettings clientSettings, ReceiveMode receiveMode)
Creates a message receiver to the entity using the client settings.
Parameters:
Returns:
Throws:
createMessageReceiverFromEntityPath
public static IMessageReceiver createMessageReceiverFromEntityPath(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings)
Creates a message receiver to the entity using the client settings in PeekLock mode
Parameters:
Returns:
Throws:
createMessageReceiverFromEntityPath
public static IMessageReceiver createMessageReceiverFromEntityPath(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings, ReceiveMode receiveMode)
Creates a message receiver to the entity using the client settings.
Parameters:
Returns:
Throws:
createMessageReceiverFromEntityPathAsync
public static CompletableFuture
Asynchronously creates a new message receiver to the entity on the messagingFactory.
Parameters:
Returns:
createMessageReceiverFromEntityPathAsync
public static CompletableFuture
Asynchronously creates a new message receiver to the entity on the messagingFactory.
Parameters:
Returns:
createMessageReceiverFromEntityPathAsync
public static CompletableFuture
Asynchronously creates a message receiver to the entity using the client settings in PeekLock mode
Parameters:
Returns:
createMessageReceiverFromEntityPathAsync
public static CompletableFuture
Asynchronously creates a message receiver to the entity using the client settings
Parameters:
Returns:
createMessageReceiverFromEntityPathAsync
public static CompletableFuture
Asynchronously creates a message receiver to the entity using the client settings in PeekLock mode
Parameters:
Returns:
createMessageReceiverFromEntityPathAsync
public static CompletableFuture
Asynchronously creates a message receiver to the entity using the client settings
Parameters:
Returns:
createMessageSenderFromConnectionString
public static IMessageSender createMessageSenderFromConnectionString(String amqpConnectionString)
Create message sender from service bus connection string with Shared Access Signatures
Parameters:
Returns:
IMessageSender instance
Throws:
createMessageSenderFromConnectionStringAsync
public static CompletableFuture
Create message sender asynchronously from connection string with Shared Access Signatures
Parameters:
Returns:
createMessageSenderFromConnectionStringBuilder
public static IMessageSender createMessageSenderFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder)
Create message sender from ConnectionStringBuilder
IMessageSender messageSender = ClientFactory.createMessageSenderFromConnectionStringBuilder(new ConnectionStringBuilder(connectionString, queueName));
Parameters:
Returns:
IMessageSender instance
Throws:
createMessageSenderFromConnectionStringBuilderAsync
public static CompletableFuture
Create message sender asynchronously from ConnectionStringBuilder
Parameters:
Returns:
createMessageSenderFromEntityPath
public static IMessageSender createMessageSenderFromEntityPath(MessagingFactory messagingFactory, String entityPath)
Creates a message sender to the entity.
Parameters:
Returns:
Throws:
createMessageSenderFromEntityPath
public static IMessageSender createMessageSenderFromEntityPath(String namespaceName, String entityPath, ClientSettings clientSettings)
Creates a message sender to the entity using the client settings.
Parameters:
Returns:
Throws:
createMessageSenderFromEntityPath
public static IMessageSender createMessageSenderFromEntityPath(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings)
Creates a message sender to the entity using the client settings.
Parameters:
Returns:
Throws:
createMessageSenderFromEntityPathAsync
public static CompletableFuture
Creates a message sender asynchronously to the entity using the MessagingFactory
Parameters:
Returns:
createMessageSenderFromEntityPathAsync
public static CompletableFuture
Creates a message sender asynchronously to the entity using the client settings.
Parameters:
Returns:
createMessageSenderFromEntityPathAsync
public static CompletableFuture
Creates a message sender asynchronously to the entity using the client settings.
Parameters:
Returns:
createTransferMessageSenderFromEntityPath
public static IMessageSender createTransferMessageSenderFromEntityPath(MessagingFactory messagingFactory, String entityPath, String viaEntityPath)
Creates a transfer message sender. This sender sends message to destination entity via another entity.
This is mainly to be used when sending messages in a transaction. When messages need to be sent across entities in a single transaction, this can be used to ensure all the messages land initially in the same entity/partition for local transactions, and then let service bus handle transferring the message to the actual destination.
Parameters:
Returns:
Throws:
createTransferMessageSenderFromEntityPathAsync
public static CompletableFuture
Creates a transfer message sender asynchronously. This sender sends message to destination entity via another entity.
This is mainly to be used when sending messages in a transaction. When messages need to be sent across entities in a single transaction, this can be used to ensure all the messages land initially in the same entity/partition for local transactions, and then let service bus handle transferring the message to the actual destination.
Parameters:
Returns:
Applies to
Azure SDK for Java