public class DefaultChannel extends CamelInternalProcessor implements org.apache.camel.Channel
Channel.
The current implementation is just a composite containing the interceptors and error handler that beforehand was
added to the route graph directly. Channel we can in the future implement better strategies for routing the Exchange in the
route graph, as we have a Channel between each and every node in the graph.CamelInternalProcessor.BacklogDebuggerAdvice, CamelInternalProcessor.BacklogTracerAdvice, CamelInternalProcessor.ChildUnitOfWorkProcessorAdvice, CamelInternalProcessor.DebuggerAdvice, CamelInternalProcessor.DelayerAdvice, CamelInternalProcessor.MessageHistoryAdvice, CamelInternalProcessor.NodeHistoryAdvice, CamelInternalProcessor.RouteInflightRepositoryAdvice, CamelInternalProcessor.RouteLifecycleAdvice, CamelInternalProcessor.RoutePolicyAdvice, CamelInternalProcessor.StreamCachingAdvice, CamelInternalProcessor.TracingAdvice, CamelInternalProcessor.UnitOfWorkProcessorAdvice| Constructor and Description |
|---|
DefaultChannel(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.Processor |
getErrorHandler() |
org.apache.camel.Processor |
getNextProcessor() |
org.apache.camel.Processor |
getOutput() |
org.apache.camel.Route |
getRoute() |
boolean |
hasNext() |
void |
initChannel(org.apache.camel.Route route,
org.apache.camel.NamedNode definition,
org.apache.camel.NamedNode childDefinition,
List<org.apache.camel.spi.InterceptStrategy> interceptors,
org.apache.camel.Processor nextProcessor,
org.apache.camel.NamedRoute routeDefinition,
boolean first) |
List<org.apache.camel.Processor> |
next() |
void |
postInitChannel() |
void |
setErrorHandler(org.apache.camel.Processor errorHandler) |
void |
setOutput(org.apache.camel.Processor output) |
String |
toString() |
addAdvice, addManagementInterceptStrategy, addRouteInflightRepositoryAdvice, addRouteLifecycleAdvice, addRoutePolicyAdvice, getAdvice, process, setRouteOnAdvices, unwrap, wrapgetProcessor, setProcessor, setProcessorbuild, doBuild, doFail, doInit, 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 org.apache.camel.Processor getOutput()
getOutput in interface org.apache.camel.Channelpublic boolean hasNext()
hasNext in interface org.apache.camel.Navigate<org.apache.camel.Processor>hasNext in class org.apache.camel.support.processor.DelegateAsyncProcessorpublic List<org.apache.camel.Processor> next()
next in interface org.apache.camel.Navigate<org.apache.camel.Processor>next in class org.apache.camel.support.processor.DelegateAsyncProcessorpublic void setOutput(org.apache.camel.Processor output)
public org.apache.camel.Processor getNextProcessor()
getNextProcessor in interface org.apache.camel.Channelpublic void setErrorHandler(org.apache.camel.Processor errorHandler)
setErrorHandler in interface org.apache.camel.Channelpublic org.apache.camel.Processor getErrorHandler()
getErrorHandler in interface org.apache.camel.Channelpublic org.apache.camel.Route getRoute()
getRoute in interface org.apache.camel.Channelprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.processor.DelegateAsyncProcessorExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.processor.DelegateAsyncProcessorExceptionprotected void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.processor.DelegateAsyncProcessorExceptionpublic void initChannel(org.apache.camel.Route route,
org.apache.camel.NamedNode definition,
org.apache.camel.NamedNode childDefinition,
List<org.apache.camel.spi.InterceptStrategy> interceptors,
org.apache.camel.Processor nextProcessor,
org.apache.camel.NamedRoute routeDefinition,
boolean first)
throws Exception
initChannel in interface org.apache.camel.ChannelExceptionpublic void postInitChannel()
throws Exception
postInitChannel in interface org.apache.camel.ChannelExceptionpublic String toString()
toString in class CamelInternalProcessorApache Camel