@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.Producer |
createProducer() |
protected KafkaProducer |
createProducer(KafkaEndpoint endpoint) |
ExecutorService |
createProducerExecutor() |
protected void |
doBuild() |
KafkaComponent |
getComponent() |
KafkaConfiguration |
getConfiguration() |
KafkaClientFactory |
getKafkaClientFactory() |
boolean |
isMultipleConsumersSupported() |
void |
setConfiguration(KafkaConfiguration configuration) |
void |
updateClassProperties(Properties props) |
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, 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, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic KafkaEndpoint()
public KafkaEndpoint(String endpointUri, KafkaComponent component)
public KafkaComponent getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointpublic KafkaConfiguration getConfiguration()
public void setConfiguration(KafkaConfiguration configuration)
public KafkaClientFactory getKafkaClientFactory()
protected void doBuild()
throws Exception
doBuild in class org.apache.camel.support.service.BaseServiceExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic boolean isMultipleConsumersSupported()
isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupportpublic void updateClassProperties(Properties props)
public ExecutorService createExecutor()
public ExecutorService createProducerExecutor()
protected KafkaProducer createProducer(KafkaEndpoint endpoint)
Apache Camel