Class AmqpConnector

java.lang.Object
io.smallrye.reactive.messaging.amqp.AmqpConnector
All Implemented Interfaces:
InboundConnector, OutboundConnector, io.smallrye.reactive.messaging.health.HealthReporter, org.eclipse.microprofile.reactive.messaging.spi.ConnectorFactory

@ApplicationScoped public class AmqpConnector extends Object implements InboundConnector, OutboundConnector, io.smallrye.reactive.messaging.health.HealthReporter
  • Field Details

  • Method Details

    • 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
    • getClientCapabilities

      public List<String> getClientCapabilities(AmqpConnectorCommonConfiguration configuration)
    • 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)