Package io.quarkiverse.rabbitmqclient
Interface RabbitMQClient
-
public interface RabbitMQClient
RabbitMQ client for handling connections with RabbitMQ brokers using the AMQP 0.9.1 protocol.- Author:
- b.passon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.rabbitmq.client.Connection
connect()
Opens a connection to the configured RabbitMQ broker.com.rabbitmq.client.Connection
connect(String name)
Opens a connection to the configured RabbitMQ broker with a given name.void
disconnect()
Explicitly disconnects the client from the RabbitMQ broker.String
getName()
Gets the name of the client.
-
-
-
Method Detail
-
connect
com.rabbitmq.client.Connection connect()
Opens a connection to the configured RabbitMQ broker.- Returns:
- a new randomly named connection.
-
connect
com.rabbitmq.client.Connection connect(String name)
Opens a connection to the configured RabbitMQ broker with a given name.- Parameters:
name
- the name of the connection.- Returns:
- a new connection if none exists with the given name, else the exiting one.
-
disconnect
void disconnect()
Explicitly disconnects the client from the RabbitMQ broker.Clients are also closed during Quarkus shutdown.
-
getName
String getName()
Gets the name of the client.
-
-