Package | Description |
---|---|
com.azure.messaging.servicebus |
Package containing classes for creating
ServiceBusSenderAsyncClient ,
ServiceBusReceiverAsyncClient to perform operations on Azure Service Bus. |
Modifier and Type | Method and Description |
---|---|
ServiceBusMessage |
ServiceBusMessage.addContext(String key,
Object value)
Adds a new key value pair to the existing context on Message.
|
ServiceBusMessage |
ServiceBusMessage.setContentType(String contentType)
Sets the content type of the
ServiceBusMessage . |
ServiceBusMessage |
ServiceBusMessage.setCorrelationId(String correlationId)
Sets a correlation identifier.
|
ServiceBusMessage |
ServiceBusMessage.setLabel(String label)
Sets the label for the message.
|
ServiceBusMessage |
ServiceBusMessage.setMessageId(String messageId)
Sets the message id.
|
ServiceBusMessage |
ServiceBusMessage.setPartitionKey(String partitionKey)
Sets a partition key for sending a message to a partitioned entity
|
ServiceBusMessage |
ServiceBusMessage.setReplyTo(String replyTo)
Sets the address of an entity to send replies to.
|
ServiceBusMessage |
ServiceBusMessage.setReplyToSessionId(String replyToSessionId)
Gets or sets a session identifier augmenting the
ReplyTo address. |
ServiceBusMessage |
ServiceBusMessage.setScheduledEnqueueTime(Instant scheduledEnqueueTime)
Sets the scheduled enqueue time of this message.
|
ServiceBusMessage |
ServiceBusMessage.setSessionId(String sessionId)
Sets the session id.
|
ServiceBusMessage |
ServiceBusMessage.setTimeToLive(Duration timeToLive)
Sets the duration of time before this message expires.
|
ServiceBusMessage |
ServiceBusMessage.setTo(String to)
Sets the "to" address.
|
ServiceBusMessage |
ServiceBusMessage.setViaPartitionKey(String viaPartitionKey)
Sets a via-partition key for sending a message to a destination entity via another partitioned entity
|
Modifier and Type | Method and Description |
---|---|
Mono<Long> |
ServiceBusSenderAsyncClient.scheduleMessage(ServiceBusMessage message,
Instant scheduledEnqueueTime)
Sends a scheduled message to the Azure Service Bus entity this sender is connected to.
|
Long |
ServiceBusSenderClient.scheduleMessage(ServiceBusMessage message,
Instant scheduledEnqueueTime)
Sends a scheduled message to the Azure Service Bus entity this sender is connected to.
|
Mono<Void> |
ServiceBusSenderAsyncClient.send(ServiceBusMessage message)
Sends a message to a Service Bus queue or topic.
|
void |
ServiceBusSenderClient.send(ServiceBusMessage message)
Sends a message to a Service Bus queue or topic.
|
boolean |
ServiceBusMessageBatch.tryAdd(ServiceBusMessage serviceBusMessage)
Tries to add an
message to the batch. |
Copyright © 2020 Microsoft Corporation. All rights reserved.