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 Summary
FieldsFields inherited from interface org.eclipse.microprofile.reactive.messaging.spi.ConnectorFactory
CHANNEL_NAME_ATTRIBUTE, CONNECTOR_ATTRIBUTE, CONNECTOR_PREFIX, INCOMING_PREFIX, OUTGOING_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClient(io.vertx.mutiny.amqp.AmqpClient client) getClientCapabilities(AmqpConnectorCommonConfiguration configuration) List<io.vertx.mutiny.amqp.AmqpClient>io.smallrye.reactive.messaging.health.HealthReportLiveness checks if a connection is established with the broker.Flow.Publisher<? extends org.eclipse.microprofile.reactive.messaging.Message<?>>getPublisher(org.eclipse.microprofile.config.Config config) io.smallrye.reactive.messaging.health.HealthReportReadiness verify that we have an established connection with the broker.io.smallrye.reactive.messaging.health.HealthReportFlow.Subscriber<? extends org.eclipse.microprofile.reactive.messaging.Message<?>>getSubscriber(org.eclipse.microprofile.config.Config config) io.vertx.mutiny.core.VertxgetVertx()voidreportFailure(String channel, Throwable reason) void
-
Field Details
-
CONNECTOR_NAME
- See Also:
-
-
Method Details
-
getPublisher
public Flow.Publisher<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getPublisher(org.eclipse.microprofile.config.Config config) - Specified by:
getPublisherin interfaceInboundConnector
-
getSubscriber
public Flow.Subscriber<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getSubscriber(org.eclipse.microprofile.config.Config config) - Specified by:
getSubscriberin interfaceOutboundConnector
-
getClientCapabilities
-
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
-
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:
getReadinessin interfaceio.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:
getLivenessin interfaceio.smallrye.reactive.messaging.health.HealthReporter- Returns:
- the report
-
getStartup
public io.smallrye.reactive.messaging.health.HealthReport getStartup()- Specified by:
getStartupin interfaceio.smallrye.reactive.messaging.health.HealthReporter
-
reportFailure
-