Package org.apache.camel.component.kafka
Class KafkaComponent
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultComponent
-
- org.apache.camel.component.kafka.KafkaComponent
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Component,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.SSLContextParametersAware,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@Component("kafka") public class KafkaComponent extends org.apache.camel.support.DefaultComponent implements org.apache.camel.SSLContextParametersAware
-
-
Constructor Summary
Constructors Constructor Description KafkaComponent()KafkaComponent(org.apache.camel.CamelContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KafkaEndpointcreateEndpoint(String uri, String remaining, Map<String,Object> parameters)KafkaConfigurationgetConfiguration()KafkaManualCommitFactorygetKafkaManualCommitFactory()booleanisUseGlobalSslContextParameters()voidsetConfiguration(KafkaConfiguration configuration)Allows to pre-configure the Kafka component with common options that the endpoints will reuse.voidsetKafkaManualCommitFactory(KafkaManualCommitFactory kafkaManualCommitFactory)Factory to use for creatingKafkaManualCommitinstances.voidsetUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)Enable usage of global SSL context parameters.-
Methods inherited from class org.apache.camel.support.DefaultComponent
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
-
Methods inherited from class org.apache.camel.support.service.BaseService
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
-
Methods inherited from interface org.apache.camel.SSLContextParametersAware
retrieveGlobalSslContextParameters
-
-
-
-
Method Detail
-
createEndpoint
protected KafkaEndpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
- Specified by:
createEndpointin classorg.apache.camel.support.DefaultComponent- Throws:
Exception
-
getConfiguration
public KafkaConfiguration getConfiguration()
-
setConfiguration
public void setConfiguration(KafkaConfiguration configuration)
Allows to pre-configure the Kafka component with common options that the endpoints will reuse.
-
isUseGlobalSslContextParameters
public boolean isUseGlobalSslContextParameters()
- Specified by:
isUseGlobalSslContextParametersin interfaceorg.apache.camel.SSLContextParametersAware
-
setUseGlobalSslContextParameters
public void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
Enable usage of global SSL context parameters.- Specified by:
setUseGlobalSslContextParametersin interfaceorg.apache.camel.SSLContextParametersAware
-
getKafkaManualCommitFactory
public KafkaManualCommitFactory getKafkaManualCommitFactory()
-
setKafkaManualCommitFactory
public void setKafkaManualCommitFactory(KafkaManualCommitFactory kafkaManualCommitFactory)
Factory to use for creatingKafkaManualCommitinstances. This allows to plugin a custom factory to create customKafkaManualCommitinstances in case special logic is needed when doing manual commits that deviates from the default implementation that comes out of the box.
-
-