@ApplicationScoped public class AmqpConnector extends Object implements IncomingConnectorFactory, OutgoingConnectorFactory, HealthReporter
CHANNEL_NAME_ATTRIBUTE, CONNECTOR_ATTRIBUTE, CONNECTOR_PREFIX, INCOMING_PREFIX, OUTGOING_PREFIX
Modifier and Type | Method and Description |
---|---|
void |
addClient(io.vertx.mutiny.amqp.AmqpClient client) |
List<io.vertx.mutiny.amqp.AmqpClient> |
getClients() |
HealthReport |
getLiveness() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> |
getPublisherBuilder(org.eclipse.microprofile.config.Config config)
Creates a channel for the given configuration.
|
HealthReport |
getReadiness() |
org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> |
getSubscriberBuilder(org.eclipse.microprofile.config.Config config)
Creates a channel for the given configuration.
|
io.vertx.mutiny.core.Vertx |
getVertx() |
void |
reportFailure(String channel,
Throwable reason) |
void |
terminate(Object event) |
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> getPublisherBuilder(org.eclipse.microprofile.config.Config config)
IncomingConnectorFactory
connector
, using the Connector
qualifier's parameter indicating a key to
which IncomingConnectorFactory
to use.
Note that the connection to the transport or broker is generally postponed until the subscription occurs.
getPublisherBuilder
in interface IncomingConnectorFactory
config
- the configuration, must not be null
, must contain the ConnectorFactory.CHANNEL_NAME_ATTRIBUTE
attribute.PublisherBuilder
, will not be null
.public org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> getSubscriberBuilder(org.eclipse.microprofile.config.Config config)
OutgoingConnectorFactory
connector
, using the Connector
qualifier's parameter indicating a key to
which Outgoing
to use.
Note that the connection to the transport or broker is generally postponed until the subscription.
getSubscriberBuilder
in interface OutgoingConnectorFactory
config
- the configuration, never null
, must contain the ConnectorFactory.CHANNEL_NAME_ATTRIBUTE
attribute.SubscriberBuilder
, must not be null
.public void terminate(@Observes(notifyObserver=IF_EXISTS) @Priority(value=50) @BeforeDestroyed(value=javax.enterprise.context.ApplicationScoped.class) Object event)
public io.vertx.mutiny.core.Vertx getVertx()
public void addClient(io.vertx.mutiny.amqp.AmqpClient client)
public List<io.vertx.mutiny.amqp.AmqpClient> getClients()
public HealthReport getReadiness()
getReadiness
in interface HealthReporter
public HealthReport getLiveness()
getLiveness
in interface HealthReporter
Copyright © 2018–2021 SmallRye. All rights reserved.