Clients -
rabbitmq :
Message
Public Ballerina API - Ballerina RabbitMQ Message.
Remote Methods
Acknowledge one or several received messages.
Reject one or several received messages.
Methods
Retrieves the delivery tag of the message.
Retrieves the properties of the message (i.e., routing headers etc.).
Retrieves the text content of the RabbitMQ message.
Retrieves the int content of the RabbitMQ message.
Retrieves the float content of the RabbitMQ message.
Retrieves the json content of the RabbitMQ message.
Retrieves the xml content of the RabbitMQ message.
Retrieves the byte array content of the RabbitMQ message.
Acknowledge one or several received messages.
Parameters
- multiple boolean? - false
-
true
to acknowledge all messages up to and including the message called on,false
to acknowledge just the message called on.
-
Return Type
(RabbitMQError?) An error if an I/O error is encountered or nil if successful.
Reject one or several received messages.
Parameters
- multiple boolean? - false
-
true
to reject all messages up to and including the message called on;false
to reject just the message called on.
- requeue boolean? - true
-
true
if the rejected message(s) should be requeued rather than discarded/dead-lettered.
-
Return Type
(RabbitMQError?) An error if an I/O error is encountered or nil if successful.
Retrieves the delivery tag of the message.
-
Return Type
(int) int containing the delivery tag of the message.
Retrieves the properties of the message (i.e., routing headers etc.).
-
Return Type
(BasicProperties | RabbitMQError) Properties of the message or error if an error is encountered.
Retrieves the text content of the RabbitMQ message.
-
Return Type
(string | RabbitMQError) string containing message data or error if an error is encountered.
Retrieves the int content of the RabbitMQ message.
-
Return Type
(int | RabbitMQError) int containing message data or error if an error is encountered.
Retrieves the float content of the RabbitMQ message.
-
Return Type
(float | RabbitMQError) float containing message data or error if an error is encountered.
Retrieves the json content of the RabbitMQ message.
-
Return Type
(json | RabbitMQError) json containing message data or error if an error is encountered.
Retrieves the xml content of the RabbitMQ message.
-
Return Type
(xml | RabbitMQError) xml containing message data or error if an error is encountered.