Listener
-
rabbitmq
:
Listener
Ballerina RabbitMQ Message Listener. Provides a listener to consume messages from the RabbitMQ server.
Methods
Stops consuming messages and detaches the service from the rabbitmq:Listener endpoint.
Stops consuming messages through all consumer services by terminating the connection and all its channels.
Stops consuming messages through all the consumer services and terminates the connection with the server.
Retrieve the rabbitmq:Channel, which initializes this rabbitmq:Listener.
LifeCycle Methods
Methods
Stops consuming messages and detaches the service from the rabbitmq:Listener endpoint.
Parameters
- s service
-
Type descriptor of the service
-
Return Type
(error?) ()or else arabbitmq:Errorupon failure to detach the service
Stops consuming messages through all consumer services by terminating the connection and all its channels.
-
Return Type
(error?) ()or else arabbitmq:Errorupon failure to close theChannelListener
Stops consuming messages through all the consumer services and terminates the connection with the server.
-
Return Type
(error?) ()or else arabbitmq:Errorupon failure to close ChannelListener.
Retrieve the rabbitmq:Channel, which initializes this rabbitmq:Listener.
-
Return Type
(Channel) A
rabbitmq:Channelobject or else arabbitmq:Errorif an I/O problem is encountered.
LifeCycle Methods
Attaches the service to the rabbitmq:Listener endpoint.
Parameters
- s service
-
Type descriptor of the service
- name string? (default ())
-
Name of the service
-
Return Type
(error?) ()or else arabbitmq:Errorupon failure to register the service