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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic io.opentelemetry.api.trace.TracerDeprecated.Fields 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 TypeMethodDescription<K,V> KafkaConsumer<K, V> getConsumer(String channel) <K,V> List<KafkaConsumer<K, V>> getConsumers(String channel) io.smallrye.reactive.messaging.health.HealthReport<K,V> KafkaProducer<K, V> getProducer(String channel) Flow.Publisher<? extends org.eclipse.microprofile.reactive.messaging.Message<?>>getPublisher(org.eclipse.microprofile.config.Config config) io.smallrye.reactive.messaging.health.HealthReportio.smallrye.reactive.messaging.health.HealthReportFlow.Subscriber<? extends org.eclipse.microprofile.reactive.messaging.Message<?>>getSubscriber(org.eclipse.microprofile.config.Config config) void
-
Field Details
-
CONNECTOR_NAME
- See Also:
-
TRACER
Deprecated.
-
-
Constructor Details
-
KafkaConnector
public KafkaConnector()
-
-
Method Details
-
terminate
public void terminate(@Observes(notifyObserver=IF_EXISTS) @Priority(50) @BeforeDestroyed(jakarta.enterprise.context.ApplicationScoped.class) Object event) -
getPublisher
public Flow.Publisher<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> getPublisher(org.eclipse.microprofile.config.Config config) - Specified by:
getPublisherin interfaceInboundConnector
-
getSubscriber
public Flow.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
-
getConsumers
-
getProducer
-
getConsumerChannels
-
getProducerChannels
-