public class KafkaComponent
extends org.apache.camel.impl.UriEndpointComponent
implements org.apache.camel.SSLContextParametersAware
| Constructor and Description |
|---|
KafkaComponent() |
KafkaComponent(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected KafkaEndpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> params) |
String |
getBrokers() |
KafkaConfiguration |
getConfiguration() |
ExecutorService |
getWorkerPool() |
boolean |
isBreakOnFirstError() |
boolean |
isUseGlobalSslContextParameters() |
void |
setBreakOnFirstError(boolean breakOnFirstError)
This options controls what happens when a consumer is processing an exchange and it fails.
|
void |
setBrokers(String brokers)
URL of the Kafka brokers to use.
|
void |
setConfiguration(KafkaConfiguration configuration)
Allows to pre-configure the Kafka component with common options that the endpoints will reuse.
|
void |
setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
Enable usage of global SSL context parameters.
|
void |
setWorkerPool(ExecutorService workerPool)
To use a shared custom worker pool for continue routing
Exchange after kafka server has acknowledge
the message that was sent to it from KafkaProducer using asynchronous non-blocking processing. |
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClassafterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, isResolvePropertyPlaceholders, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, setResolvePropertyPlaceholders, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic KafkaComponent()
public KafkaComponent(org.apache.camel.CamelContext context)
protected KafkaEndpoint createEndpoint(String uri, String remaining, Map<String,Object> params) throws Exception
createEndpoint in class org.apache.camel.impl.DefaultComponentExceptionpublic KafkaConfiguration getConfiguration()
public void setConfiguration(KafkaConfiguration configuration)
public String getBrokers()
public void setBrokers(String brokers)
public ExecutorService getWorkerPool()
public void setWorkerPool(ExecutorService workerPool)
Exchange after kafka server has acknowledge
the message that was sent to it from KafkaProducer using asynchronous non-blocking processing.
If using this option then you must handle the lifecycle of the thread pool to shut the pool down when no longer needed.public boolean isUseGlobalSslContextParameters()
isUseGlobalSslContextParameters in interface org.apache.camel.SSLContextParametersAwarepublic void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
setUseGlobalSslContextParameters in interface org.apache.camel.SSLContextParametersAwarepublic boolean isBreakOnFirstError()
public void setBreakOnFirstError(boolean breakOnFirstError)
Apache Camel