Class KafkaConnector
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.KafkaConnector
-
- All Implemented Interfaces:
io.smallrye.reactive.messaging.health.HealthReporter,org.eclipse.microprofile.reactive.messaging.spi.ConnectorFactory,org.eclipse.microprofile.reactive.messaging.spi.IncomingConnectorFactory,org.eclipse.microprofile.reactive.messaging.spi.OutgoingConnectorFactory
@ApplicationScoped public class KafkaConnector extends Object implements org.eclipse.microprofile.reactive.messaging.spi.IncomingConnectorFactory, org.eclipse.microprofile.reactive.messaging.spi.OutgoingConnectorFactory, io.smallrye.reactive.messaging.health.HealthReporter
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTOR_NAMEstatic io.opentelemetry.api.trace.TracerTRACER
-
Constructor Summary
Constructors Constructor Description KafkaConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
KafkaConsumer<K,V>getConsumer(String channel)Set<String>getConsumerChannels()io.smallrye.reactive.messaging.health.HealthReportgetLiveness()<K,V>
KafkaProducer<K,V>getProducer(String channel)Set<String>getProducerChannels()org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends org.eclipse.microprofile.reactive.messaging.Message<?>>getPublisherBuilder(org.eclipse.microprofile.config.Config config)io.smallrye.reactive.messaging.health.HealthReportgetReadiness()io.smallrye.reactive.messaging.health.HealthReportgetStartup()org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends org.eclipse.microprofile.reactive.messaging.Message<?>,Void>getSubscriberBuilder(org.eclipse.microprofile.config.Config config)voidterminate(Object event)
-
-
-
Field Detail
-
CONNECTOR_NAME
public static final String CONNECTOR_NAME
- See Also:
- Constant Field Values
-
TRACER
public static io.opentelemetry.api.trace.Tracer TRACER
-
-
Method Detail
-
terminate
public void terminate(@Observes(notifyObserver=IF_EXISTS) @Priority(50) @BeforeDestroyed(javax.enterprise.context.ApplicationScoped.class) Object event)
-
getPublisherBuilder
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getPublisherBuilder(org.eclipse.microprofile.config.Config config)
- Specified by:
getPublisherBuilderin interfaceorg.eclipse.microprofile.reactive.messaging.spi.IncomingConnectorFactory
-
getSubscriberBuilder
public org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends org.eclipse.microprofile.reactive.messaging.Message<?>,Void> getSubscriberBuilder(org.eclipse.microprofile.config.Config config)
- Specified by:
getSubscriberBuilderin interfaceorg.eclipse.microprofile.reactive.messaging.spi.OutgoingConnectorFactory
-
getStartup
public io.smallrye.reactive.messaging.health.HealthReport getStartup()
- Specified by:
getStartupin interfaceio.smallrye.reactive.messaging.health.HealthReporter
-
getReadiness
public io.smallrye.reactive.messaging.health.HealthReport getReadiness()
- Specified by:
getReadinessin interfaceio.smallrye.reactive.messaging.health.HealthReporter
-
getLiveness
public io.smallrye.reactive.messaging.health.HealthReport getLiveness()
- Specified by:
getLivenessin interfaceio.smallrye.reactive.messaging.health.HealthReporter
-
getConsumer
public <K,V> KafkaConsumer<K,V> getConsumer(String channel)
-
getProducer
public <K,V> KafkaProducer<K,V> getProducer(String channel)
-
-