Class PulsarConnector
java.lang.Object
io.smallrye.reactive.messaging.pulsar.PulsarConnector
- All Implemented Interfaces:
InboundConnector
,OutboundConnector
,io.smallrye.reactive.messaging.health.HealthReporter
,org.eclipse.microprofile.reactive.messaging.spi.ConnectorFactory
@ApplicationScoped
public class PulsarConnector
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pulsar.client.api.PulsarClient
<T> org.apache.pulsar.client.api.Consumer
<T> getConsumer
(String channel) io.smallrye.reactive.messaging.health.HealthReport
<T> org.apache.pulsar.client.api.Producer
<T> getProducer
(String channel) Flow.Publisher
<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getPublisher
(org.eclipse.microprofile.config.Config config) io.smallrye.reactive.messaging.health.HealthReport
io.smallrye.reactive.messaging.health.HealthReport
Flow.Subscriber
<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getSubscriber
(org.eclipse.microprofile.config.Config config) void
-
Field Details
-
CONNECTOR_NAME
- See Also:
-
-
Constructor Details
-
PulsarConnector
public PulsarConnector()
-
-
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
-
terminate
public void terminate(@Observes(notifyObserver=IF_EXISTS) @Priority(50) @BeforeDestroyed(jakarta.enterprise.context.ApplicationScoped.class) Object event) -
getClient
-
getConsumer
-
getProducer
-
getConsumerChannels
-
getProducerChannels
-
getStartup
public io.smallrye.reactive.messaging.health.HealthReport getStartup()- Specified by:
getStartup
in interfaceio.smallrye.reactive.messaging.health.HealthReporter
-
getReadiness
public io.smallrye.reactive.messaging.health.HealthReport getReadiness()- Specified by:
getReadiness
in interfaceio.smallrye.reactive.messaging.health.HealthReporter
-
getLiveness
public io.smallrye.reactive.messaging.health.HealthReport getLiveness()- Specified by:
getLiveness
in interfaceio.smallrye.reactive.messaging.health.HealthReporter
-