Uses of Class
com.azure.messaging.servicebus.ServiceBusMessage
Package
Description
Package containing classes for creating
ServiceBusSenderAsyncClient
,
ServiceBusProcessorClient
, and
ServiceBusReceiverAsyncClient
to perform operations on Azure Service Bus.-
Uses of ServiceBusMessage in com.azure.messaging.servicebus
Modifier and TypeMethodDescriptionServiceBusMessage.addContext
(String key, Object value) Adds a new key value pair to the existing context on Message.ServiceBusMessage.setContentType
(String contentType) Sets the content type of theServiceBusMessage
.ServiceBusMessage.setCorrelationId
(String correlationId) Sets a correlation identifier.ServiceBusMessage.setMessageId
(String messageId) Sets the message id.ServiceBusMessage.setPartitionKey
(String partitionKey) Sets a partition key for sending a message to a partitioned entityServiceBusMessage.setReplyTo
(String replyTo) Sets the address of an entity to send replies to.ServiceBusMessage.setReplyToSessionId
(String replyToSessionId) Gets or sets a session identifier augmenting theReplyTo
address.ServiceBusMessage.setScheduledEnqueueTime
(OffsetDateTime scheduledEnqueueTime) Sets the scheduled enqueue time of this message.ServiceBusMessage.setSessionId
(String sessionId) Sets the session identifier for a session-aware entity.ServiceBusMessage.setSubject
(String subject) Sets the subject for the message.ServiceBusMessage.setTimeToLive
(Duration timeToLive) Sets the duration of time before this message expires.Sets the "to" address.Modifier and TypeMethodDescriptionServiceBusSenderAsyncClient.scheduleMessage
(ServiceBusMessage message, OffsetDateTime scheduledEnqueueTime) Sends a scheduled message to the Azure Service Bus entity this sender is connected to.ServiceBusSenderAsyncClient.scheduleMessage
(ServiceBusMessage message, OffsetDateTime scheduledEnqueueTime, ServiceBusTransactionContext transactionContext) Sends a scheduled message to the Azure Service Bus entity this sender is connected to.ServiceBusSenderClient.scheduleMessage
(ServiceBusMessage message, OffsetDateTime scheduledEnqueueTime) Sends a scheduled message to the Azure Service Bus entity this sender is connected to.ServiceBusSenderClient.scheduleMessage
(ServiceBusMessage message, OffsetDateTime scheduledEnqueueTime, ServiceBusTransactionContext transactionContext) Sends a scheduled message to the Azure Service Bus entity this sender is connected to.ServiceBusSenderAsyncClient.sendMessage
(ServiceBusMessage message) Sends a message to a Service Bus queue or topic.ServiceBusSenderAsyncClient.sendMessage
(ServiceBusMessage message, ServiceBusTransactionContext transactionContext) Sends a message to a Service Bus queue or topic.void
ServiceBusSenderClient.sendMessage
(ServiceBusMessage message) Sends a message to a Service Bus queue or topic.void
ServiceBusSenderClient.sendMessage
(ServiceBusMessage message, ServiceBusTransactionContext transactionContext) Sends a message to a Service Bus queue or topic.boolean
ServiceBusMessageBatch.tryAddMessage
(ServiceBusMessage serviceBusMessage) Tries to add amessage
to the batch.Modifier and TypeMethodDescriptionServiceBusSenderAsyncClient.scheduleMessages
(Iterable<ServiceBusMessage> messages, OffsetDateTime scheduledEnqueueTime) Sends a batch of scheduled messages to the Azure Service Bus entity this sender is connected to.ServiceBusSenderAsyncClient.scheduleMessages
(Iterable<ServiceBusMessage> messages, OffsetDateTime scheduledEnqueueTime, ServiceBusTransactionContext transactionContext) Sends a scheduled messages to the Azure Service Bus entity this sender is connected to.ServiceBusSenderClient.scheduleMessages
(Iterable<ServiceBusMessage> messages, OffsetDateTime scheduledEnqueueTime) Sends a batch of scheduled messages to the Azure Service Bus entity this sender is connected to.ServiceBusSenderClient.scheduleMessages
(Iterable<ServiceBusMessage> messages, OffsetDateTime scheduledEnqueueTime, ServiceBusTransactionContext transactionContext) Sends a batch of scheduled messages to the Azure Service Bus entity this sender is connected to.ServiceBusSenderAsyncClient.sendMessages
(Iterable<ServiceBusMessage> messages) Sends a set of messages to a Service Bus queue or topic using a batched approach.ServiceBusSenderAsyncClient.sendMessages
(Iterable<ServiceBusMessage> messages, ServiceBusTransactionContext transactionContext) Sends a set of messages to a Service Bus queue or topic using a batched approach.void
ServiceBusSenderClient.sendMessages
(Iterable<ServiceBusMessage> messages) Sends a set ofServiceBusMessage
to a Service Bus queue or topic using a batched approach.void
ServiceBusSenderClient.sendMessages
(Iterable<ServiceBusMessage> messages, ServiceBusTransactionContext transactionContext) Sends a set ofServiceBusMessage
to a Service Bus queue or topic using a batched approach.