public class RouteboxDirectConsumer extends RouteboxServiceSupport implements RouteboxConsumer, org.apache.camel.spi.ShutdownAware, org.apache.camel.SuspendableService
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.camel.ProducerTemplate |
producer |
| Constructor and Description |
|---|
RouteboxDirectConsumer(RouteboxDirectEndpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deferShutdown(org.apache.camel.ShutdownRunningTask shutdownRunningTask) |
protected void |
doResume() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
doSuspend() |
org.apache.camel.AsyncProcessor |
getAsyncProcessor()
Provides an
AsyncProcessor interface to the configured
processor on the consumer. |
RouteboxDirectEndpoint |
getEndpoint() |
int |
getPendingExchangesSize() |
org.apache.camel.Processor |
getProcessor() |
void |
prepareShutdown(boolean forced) |
doStartInnerContext, doStopInnerContext, getExceptionHandler, getExecutor, getRouteboxEndpoint, isStartedInnerContext, setExceptionHandler, setExecutor, setRouteboxEndpoint, setStartedInnerContextdoShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic RouteboxDirectConsumer(RouteboxDirectEndpoint endpoint, org.apache.camel.Processor processor)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.ServiceSupportExceptionprotected void doSuspend()
throws Exception
doSuspend in class org.apache.camel.support.ServiceSupportExceptionprotected void doResume()
throws Exception
doResume in class org.apache.camel.support.ServiceSupportExceptionpublic org.apache.camel.AsyncProcessor getAsyncProcessor()
AsyncProcessor interface to the configured
processor on the consumer. If the processor does not implement the interface,
it will be adapted so that it does.public 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 forced)
prepareShutdown in interface org.apache.camel.spi.ShutdownPreparedpublic RouteboxDirectEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.Consumerpublic org.apache.camel.Processor getProcessor()
Apache Camel