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
Fields 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 TypeMethodDescriptionvoid
addClient
(io.vertx.mutiny.amqp.AmqpClient client) getClientCapabilities
(AmqpConnectorCommonConfiguration configuration) List<io.vertx.mutiny.amqp.AmqpClient>
io.smallrye.reactive.messaging.health.HealthReport
Liveness 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.HealthReport
Readiness verify that we have an established connection with the broker.io.smallrye.reactive.messaging.health.HealthReport
Flow.Subscriber<? extends org.eclipse.microprofile.reactive.messaging.Message<?>>
getSubscriber
(org.eclipse.microprofile.config.Config config) io.vertx.mutiny.core.Vertx
getVertx()
void
reportFailure
(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:
getPublisher
in interfaceInboundConnector
-
getSubscriber
public Flow.Subscriber<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getSubscriber(org.eclipse.microprofile.config.Config config) - Specified by:
getSubscriber
in 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:
getReadiness
in 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:
getLiveness
in interfaceio.smallrye.reactive.messaging.health.HealthReporter
- Returns:
- the report
-
getStartup
public io.smallrye.reactive.messaging.health.HealthReport getStartup()- Specified by:
getStartup
in interfaceio.smallrye.reactive.messaging.health.HealthReporter
-
reportFailure
-