Class KafkaConnector
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.KafkaConnector
-
- All Implemented Interfaces:
InboundConnector,OutboundConnector,io.smallrye.reactive.messaging.health.HealthReporter,org.eclipse.microprofile.reactive.messaging.spi.ConnectorFactory
@ApplicationScoped public class KafkaConnector extends Object implements InboundConnector, OutboundConnector, io.smallrye.reactive.messaging.health.HealthReporter
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTOR_NAMEstatic io.opentelemetry.api.trace.TracerTRACERDeprecated.
-
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()<K,V>
List<KafkaConsumer<K,V>>getConsumers(String channel)io.smallrye.reactive.messaging.health.HealthReportgetLiveness()<K,V>
KafkaProducer<K,V>getProducer(String channel)Set<String>getProducerChannels()org.reactivestreams.Publisher<? extends org.eclipse.microprofile.reactive.messaging.Message<?>>getPublisher(org.eclipse.microprofile.config.Config config)io.smallrye.reactive.messaging.health.HealthReportgetReadiness()io.smallrye.reactive.messaging.health.HealthReportgetStartup()org.reactivestreams.Subscriber<? extends org.eclipse.microprofile.reactive.messaging.Message<?>>getSubscriber(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
@Deprecated public static io.opentelemetry.api.trace.Tracer TRACER
Deprecated.
-
-
Method Detail
-
terminate
public void terminate(@Observes(notifyObserver=IF_EXISTS) @Priority(50) @BeforeDestroyed(javax.enterprise.context.ApplicationScoped.class) Object event)
-
getPublisher
public org.reactivestreams.Publisher<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getPublisher(org.eclipse.microprofile.config.Config config)
- Specified by:
getPublisherin interfaceInboundConnector
-
getSubscriber
public org.reactivestreams.Subscriber<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getSubscriber(org.eclipse.microprofile.config.Config config)
- Specified by:
getSubscriberin interfaceOutboundConnector
-
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)
-
getConsumers
public <K,V> List<KafkaConsumer<K,V>> getConsumers(String channel)
-
getProducer
public <K,V> KafkaProducer<K,V> getProducer(String channel)
-
-