public class KafkaProducer
extends org.apache.camel.impl.DefaultProducer
Modifier and Type | Field and Description |
---|---|
protected kafka.javaapi.producer.Producer<String,String> |
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, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public KafkaProducer(KafkaEndpoint endpoint)
protected void doStop() throws Exception
doStop
in class org.apache.camel.impl.DefaultProducer
Exception
protected void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultProducer
Exception
public void process(org.apache.camel.Exchange exchange) throws org.apache.camel.CamelException
org.apache.camel.CamelException
Apache Camel