Class KafkaConnector
java.lang.Object
io.helidon.messaging.connectors.kafka.KafkaConnector
- All Implemented Interfaces:
- Stoppable,- ConnectorFactory,- IncomingConnectorFactory,- OutgoingConnectorFactory
@ApplicationScoped
public class KafkaConnector
extends Object
implements IncomingConnectorFactory, OutgoingConnectorFactory, Stoppable
Implementation of Kafka Connector as described in the MicroProfile Reactive Messaging Specification.
- 
Field SummaryFields inherited from interface org.eclipse.microprofile.reactive.messaging.spi.ConnectorFactoryCHANNEL_NAME_ATTRIBUTE, CONNECTOR_ATTRIBUTE, CONNECTOR_PREFIX, INCOMING_PREFIX, OUTGOING_PREFIX
- 
Method SummaryModifier and TypeMethodDescriptionstatic KafkaConfigBuilderCustom config builder for Kafka connector.static KafkaConnectorcreate()Creates a new instance of KafkaConnector with empty configuration.static KafkaConnectorCreates a new instance of KafkaConnector with the required configuration.PublisherBuilder<? extends Message<?>> getPublisherBuilder(Config config) SubscriberBuilder<? extends Message<?>, Void> getSubscriberBuilder(Config config) voidstop()Stops the KafkaConnector and all the jobs and resources related to it.
- 
Method Details- 
getPublisherBuilder- Specified by:
- getPublisherBuilderin interface- IncomingConnectorFactory
 
- 
getSubscriberBuilder- Specified by:
- getSubscriberBuilderin interface- OutgoingConnectorFactory
 
- 
createCreates a new instance of KafkaConnector with the required configuration.- Parameters:
- config- Helidon- config
- Returns:
- the new instance
 
- 
createCreates a new instance of KafkaConnector with empty configuration.- Returns:
- the new instance
 
- 
stoppublic void stop()Stops the KafkaConnector and all the jobs and resources related to it.
- 
configBuilderCustom config builder for Kafka connector.- Returns:
- new Kafka specific config builder
 
 
-