public class KafkaConsumer
extends org.apache.camel.support.DefaultConsumer
Modifier and Type | Field and Description |
---|---|
protected ExecutorService |
executor |
Constructor and Description |
---|
KafkaConsumer(KafkaEndpoint endpoint,
org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
protected long |
deserializeOffsetValue(String offset) |
protected void |
doBuild() |
protected void |
doStart() |
protected void |
doStop() |
KafkaEndpoint |
getEndpoint() |
protected String |
serializeOffsetKey(org.apache.kafka.common.TopicPartition topicPartition) |
protected String |
serializeOffsetValue(long offset) |
createExchange, createUoW, defaultConsumerCallback, doInit, doneUoW, doShutdown, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, releaseExchange, setExceptionHandler, setRoute, setRouteId, toString
build, doFail, doLifecycleChange, doResume, 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, wait, wait, wait
protected ExecutorService executor
public KafkaConsumer(KafkaEndpoint endpoint, org.apache.camel.Processor processor)
protected void doBuild() throws Exception
doBuild
in class org.apache.camel.support.DefaultConsumer
Exception
public KafkaEndpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.support.DefaultConsumer
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.DefaultConsumer
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.DefaultConsumer
Exception
protected String serializeOffsetKey(org.apache.kafka.common.TopicPartition topicPartition)
protected String serializeOffsetValue(long offset)
protected long deserializeOffsetValue(String offset)
Apache Camel