@UriEndpoint(firstVersion="2.13.0",
scheme="kafka",
title="Kafka",
syntax="kafka:topic",
category=MESSAGING)
public class KafkaEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.MultipleConsumersSupport
Constructor and Description |
---|
KafkaEndpoint() |
KafkaEndpoint(String endpointUri,
KafkaComponent component) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
ExecutorService |
createExecutor() |
org.apache.camel.Exchange |
createKafkaExchange(org.apache.kafka.clients.consumer.ConsumerRecord record) |
org.apache.camel.Producer |
createProducer() |
protected KafkaProducer |
createProducer(KafkaEndpoint endpoint) |
ExecutorService |
createProducerExecutor() |
KafkaComponent |
getComponent() |
KafkaConfiguration |
getConfiguration() |
boolean |
isMultipleConsumersSupported() |
void |
setConfiguration(KafkaConfiguration configuration) |
void |
updateClassProperties(Properties props) |
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public KafkaEndpoint()
public KafkaEndpoint(String endpointUri, KafkaComponent component)
public KafkaComponent getComponent()
getComponent
in class org.apache.camel.support.DefaultEndpoint
public KafkaConfiguration getConfiguration()
public void setConfiguration(KafkaConfiguration configuration)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
createConsumer
in interface org.apache.camel.Endpoint
Exception
public org.apache.camel.Producer createProducer() throws Exception
createProducer
in interface org.apache.camel.Endpoint
Exception
public boolean isMultipleConsumersSupported()
isMultipleConsumersSupported
in interface org.apache.camel.MultipleConsumersSupport
public void updateClassProperties(Properties props)
public ExecutorService createExecutor()
public ExecutorService createProducerExecutor()
public org.apache.camel.Exchange createKafkaExchange(org.apache.kafka.clients.consumer.ConsumerRecord record)
protected KafkaProducer createProducer(KafkaEndpoint endpoint)
Apache Camel