Class RabbitMQClients


  • @Singleton
    public class RabbitMQClients
    extends Object
    This class is sort of a producer RabbitMQClient instances.

    It isn't a CDI producer in the literal sense, but it is created by a synthetic bean from QuarkusRabbitMQClientProcessor The createRabbitMQClient method is called at runtime (see RabbitMQRecorder.rabbitMQClientSupplier(String) in order to produce the actual RabbitMQClient objects.

    Author:
    b.passon
    • Constructor Detail

      • RabbitMQClients

        public RabbitMQClients​(RabbitMQClientsConfig rabbitMQClientsConfig,
                               io.quarkus.runtime.TlsConfig tlsConfig,
                               org.eclipse.microprofile.context.ManagedExecutor executorService,
                               io.quarkus.runtime.LaunchMode launchMode)
    • Method Detail

      • destroy

        public void destroy()
        Destroys the RabbitMQClient and closes all connections.

        Note: This is called by the Quarkus during shutdown through the ShutdownContext, it therefore does not need @PreDestroy