@Component(value="kafka")
public class KafkaComponent
extends org.apache.camel.support.DefaultComponent
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> parameters) |
KafkaConfiguration |
getConfiguration() |
KafkaManualCommitFactory |
getKafkaManualCommitFactory() |
boolean |
isUseGlobalSslContextParameters() |
void |
setConfiguration(KafkaConfiguration configuration)
Allows to pre-configure the Kafka component with common options that the endpoints will reuse.
|
void |
setKafkaManualCommitFactory(KafkaManualCommitFactory kafkaManualCommitFactory)
Factory to use for creating
KafkaManualCommit instances. |
void |
setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
Enable usage of global SSL context parameters.
|
afterConfiguration, createEndpoint, createEndpoint, doBuild, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
build, doFail, doInit, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
retrieveGlobalSslContextParameters
getCamelContext, setCamelContext, trySetCamelContext
public KafkaComponent()
public KafkaComponent(org.apache.camel.CamelContext context)
protected KafkaEndpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.support.DefaultComponent
Exception
public KafkaConfiguration getConfiguration()
public void setConfiguration(KafkaConfiguration configuration)
public boolean isUseGlobalSslContextParameters()
isUseGlobalSslContextParameters
in interface org.apache.camel.SSLContextParametersAware
public void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
setUseGlobalSslContextParameters
in interface org.apache.camel.SSLContextParametersAware
public KafkaManualCommitFactory getKafkaManualCommitFactory()
public void setKafkaManualCommitFactory(KafkaManualCommitFactory kafkaManualCommitFactory)
KafkaManualCommit
instances. This allows to plugin a custom factory to create
custom KafkaManualCommit
instances in case special logic is needed when doing manual commits that
deviates from the default implementation that comes out of the box.Apache Camel