Class AmqpConnector

    • Method Detail

      • getPublisher

        public Flow.Publisher<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getPublisher​(org.eclipse.microprofile.config.Config config)
        Specified by:
        getPublisher in interface InboundConnector
      • getSubscriber

        public Flow.Subscriber<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getSubscriber​(org.eclipse.microprofile.config.Config config)
        Specified by:
        getSubscriber in interface OutboundConnector
      • terminate

        public void terminate​(@Observes(notifyObserver=IF_EXISTS) @Priority(50) @BeforeDestroyed(jakarta.enterprise.context.ApplicationScoped.class)
                              Object event)
      • getVertx

        public io.vertx.mutiny.core.Vertx getVertx()
      • addClient

        public void addClient​(io.vertx.mutiny.amqp.AmqpClient client)
      • getClients

        public List<io.vertx.mutiny.amqp.AmqpClient> getClients()
      • getReadiness

        public io.smallrye.reactive.messaging.health.HealthReport getReadiness()
        Readiness verify that we have an established connection with the broker. If the connection is disconnected, readiness is set to false. However, liveness may still be true because of the retry.
        Specified by:
        getReadiness in interface io.smallrye.reactive.messaging.health.HealthReporter
        Returns:
        the report
      • getLiveness

        public io.smallrye.reactive.messaging.health.HealthReport getLiveness()
        Liveness checks if a connection is established with the broker. Liveness is set to false after all the retry attempt have been re-attempted.
        Specified by:
        getLiveness in interface io.smallrye.reactive.messaging.health.HealthReporter
        Returns:
        the report
      • getStartup

        public io.smallrye.reactive.messaging.health.HealthReport getStartup()
        Specified by:
        getStartup in interface io.smallrye.reactive.messaging.health.HealthReporter
      • reportFailure

        public void reportFailure​(String channel,
                                  Throwable reason)