public class SedaConsumer extends org.apache.camel.support.DefaultConsumer implements Runnable, org.apache.camel.spi.ShutdownAware, org.apache.camel.Suspendable
| Constructor and Description |
|---|
SedaConsumer(SedaEndpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deferShutdown(org.apache.camel.ShutdownRunningTask shutdownRunningTask) |
protected void |
doResume() |
protected void |
doRun() |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
doSuspend() |
SedaEndpoint |
getEndpoint() |
int |
getPendingExchangesSize() |
boolean |
isRunAllowed() |
protected org.apache.camel.Exchange |
prepareExchange(org.apache.camel.Exchange exchange)
Strategy to prepare exchange for being processed by this consumer
|
void |
prepareShutdown(boolean suspendOnly,
boolean forced) |
void |
run() |
protected void |
sendToConsumers(org.apache.camel.Exchange exchange)
Send the given
Exchange to the consumer(s). |
createUoW, doInit, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, setExceptionHandler, setRoute, setRouteId, toStringbuild, doBuild, doFail, doLifecycleChange, fail, getStatus, init, isBuild, isInit, isNew, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SedaConsumer(SedaEndpoint endpoint, org.apache.camel.Processor processor)
public SedaEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultConsumerpublic boolean deferShutdown(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
deferShutdown in interface org.apache.camel.spi.ShutdownAwarepublic int getPendingExchangesSize()
getPendingExchangesSize in interface org.apache.camel.spi.ShutdownAwarepublic void prepareShutdown(boolean suspendOnly,
boolean forced)
prepareShutdown in interface org.apache.camel.spi.ShutdownPreparedpublic boolean isRunAllowed()
isRunAllowed in interface org.apache.camel.StatefulServiceisRunAllowed in class org.apache.camel.support.service.BaseServiceprotected void doRun()
protected org.apache.camel.Exchange prepareExchange(org.apache.camel.Exchange exchange)
exchange - the exchangeprotected void sendToConsumers(org.apache.camel.Exchange exchange)
throws Exception
Exchange to the consumer(s).
If multiple consumers then they will each receive a copy of the Exchange. A multicast processor will send the
exchange in parallel to the multiple consumers.
If there is only a single consumer then its dispatched directly to it using same thread.exchange - the exchangeException - can be thrown if processing of the exchange failedprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultConsumerExceptionprotected void doSuspend()
throws Exception
doSuspend in class org.apache.camel.support.service.BaseServiceExceptionprotected void doResume()
throws Exception
doResume in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultConsumerExceptionApache Camel