public class KafkaProducer<K,V>
extends org.apache.camel.impl.DefaultProducer
| Modifier and Type | Field and Description |
|---|---|
protected kafka.javaapi.producer.Producer<K,V> |
producer |
| Constructor and Description |
|---|
KafkaProducer(KafkaEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
process(org.apache.camel.Exchange exchange) |
createExchange, createExchange, createExchange, getEndpoint, isSingleton, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic KafkaProducer(KafkaEndpoint endpoint)
protected void doStop()
throws Exception
doStop in class org.apache.camel.impl.DefaultProducerExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultProducerExceptionpublic void process(org.apache.camel.Exchange exchange)
throws org.apache.camel.CamelException
org.apache.camel.CamelExceptionApache Camel