QueueClient.sendMessage Method
Definition
Overloads
| sendMessage(BinaryData message) |
Sends a message that has a time-to-live of 7 days and is instantly visible. Code Samples Sends a message of "Hello, Azure"
For more information, see the Azure Docs. |
| sendMessage(String messageText) |
Sends a message that has a time-to-live of 7 days and is instantly visible. Code Samples Sends a message of "Hello, Azure"
For more information, see the Azure Docs. |
sendMessage(BinaryData message)
Sends a message that has a time-to-live of 7 days and is instantly visible.
Code Samples
Sends a message of "Hello, Azure"
SendMessageResult response = client.sendMessage(BinaryData.fromString("Hello msg"));
System.out.println("Complete enqueuing the message with message Id" + response.getMessageId());
For more information, see the Azure Docs.
public SendMessageResult sendMessage(BinaryData message)
Parameters
- message
- BinaryData
Message content
Returns
A SendMessageResult value that contains the getMessageId() and getPopReceipt() that are used to interact with the message and other metadata about the enqueued message.
sendMessage(String messageText)
Sends a message that has a time-to-live of 7 days and is instantly visible.
Code Samples
Sends a message of "Hello, Azure"
SendMessageResult response = client.sendMessage("hello msg");
System.out.println("Complete enqueuing the message with message Id" + response.getMessageId());
For more information, see the Azure Docs.
public SendMessageResult sendMessage(String messageText)
Parameters
- messageText
- java.lang.String
Message text
Returns
A SendMessageResult value that contains the getMessageId() and getPopReceipt() that are used to interact with the message and other metadata about the enqueued message.