public abstract class SoroushBotAbstractConsumer
extends org.apache.camel.support.DefaultConsumer
implements org.apache.camel.spi.ShutdownPrepared
sendExchange(Exchange) each subclass should handle how it will start the
processing of the exchange| Constructor and Description |
|---|
SoroushBotAbstractConsumer(SoroushBotEndpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
void |
doStart() |
void |
prepareShutdown(boolean suspendOnly,
boolean forced) |
protected abstract void |
sendExchange(org.apache.camel.Exchange exchange)
handle how processing of the exchange should be started
|
createExchange, createUoW, defaultConsumerCallback, doBuild, doInit, doneUoW, doShutdown, doStop, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, releaseExchange, setExceptionHandler, setRoute, setRouteId, toStringbuild, 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, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SoroushBotAbstractConsumer(SoroushBotEndpoint endpoint, org.apache.camel.Processor processor)
public void doStart()
doStart in class org.apache.camel.support.DefaultConsumerprotected abstract void sendExchange(org.apache.camel.Exchange exchange)
throws Exception
exchange - Exceptionpublic void prepareShutdown(boolean suspendOnly,
boolean forced)
prepareShutdown in interface org.apache.camel.spi.ShutdownPreparedApache Camel