ClientFactory.createMessageSenderFromEntityPathAsync 方法

定义

重载

createMessageSenderFromEntityPathAsync(MessagingFactory messagingFactory, String entityPath)

Creates a message sender asynchronously to the entity using the MessagingFactory

createMessageSenderFromEntityPathAsync(String namespaceName, String entityPath, ClientSettings clientSettings)

Creates a message sender asynchronously to the entity using the client settings.

createMessageSenderFromEntityPathAsync(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings)

Creates a message sender asynchronously to the entity using the client settings.

createMessageSenderFromEntityPathAsync(MessagingFactory messagingFactory, String entityPath)

Creates a message sender asynchronously to the entity using the MessagingFactory

public static CompletableFuture<IMessageSender> createMessageSenderFromEntityPathAsync(MessagingFactory messagingFactory, String entityPath)

参数

messagingFactory
MessagingFactory

messaging factory (which represents a connection) on which sender needs to be created

entityPath
String

path of entity

返回

CompletableFuture<IMessageSender>

a CompletableFuture representing the pending creating of IMessageSender instance

createMessageSenderFromEntityPathAsync(String namespaceName, String entityPath, ClientSettings clientSettings)

Creates a message sender asynchronously to the entity using the client settings.

public static CompletableFuture<IMessageSender> createMessageSenderFromEntityPathAsync(String namespaceName, String entityPath, ClientSettings clientSettings)

参数

namespaceName
String

namespace name of entity

entityPath
String

path of entity

clientSettings
ClientSettings

client settings

返回

CompletableFuture<IMessageSender>

a CompletableFuture representing the pending creating of IMessageSender instance

createMessageSenderFromEntityPathAsync(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings)

Creates a message sender asynchronously to the entity using the client settings.

public static CompletableFuture<IMessageSender> createMessageSenderFromEntityPathAsync(URI namespaceEndpointURI, String entityPath, ClientSettings clientSettings)

参数

namespaceEndpointURI
URI

endpoint uri of entity namespace

entityPath
String

path of entity

clientSettings
ClientSettings

client settings

返回

CompletableFuture<IMessageSender>

a CompletableFuture representing the pending creating of IMessageSender instance

适用于