Package org.apache.camel.impl.engine
Class DefaultChannel
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.AsyncProcessorSupport
org.apache.camel.support.processor.DelegateAsyncProcessor
org.apache.camel.impl.engine.CamelInternalProcessor
org.apache.camel.impl.engine.DefaultChannel
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.AsyncProcessor,org.apache.camel.Channel,org.apache.camel.DelegateProcessor,org.apache.camel.DisabledAware,org.apache.camel.Navigate<org.apache.camel.Processor>,org.apache.camel.Processor,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.InternalProcessor,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
DefaultChannel is the default
With this
Channel.
The current implementation is just a composite containing the interceptors and error handler that beforehand was
added to the route graph directly. With this
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.camel.impl.engine.CamelInternalProcessor
CamelInternalProcessor.BacklogDebuggerAdvice, CamelInternalProcessor.BacklogTracerAdvice, CamelInternalProcessor.DebuggerAdvice, CamelInternalProcessor.DelayerAdvice, CamelInternalProcessor.MessageHistoryAdvice, CamelInternalProcessor.NodeHistoryAdvice, CamelInternalProcessor.RouteInflightRepositoryAdvice, CamelInternalProcessor.RouteLifecycleAdvice, CamelInternalProcessor.RoutePolicyAdvice, CamelInternalProcessor.StreamCachingAdvice, CamelInternalProcessor.TracingAdvice, CamelInternalProcessor.UnitOfWorkProcessorAdvice -
Field Summary
Fields inherited from class org.apache.camel.support.processor.DelegateAsyncProcessor
processorFields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddoStart()protected voiddoStop()org.apache.camel.Processororg.apache.camel.Processororg.apache.camel.Processororg.apache.camel.RoutegetRoute()booleanhasNext()voidinitChannel(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()voidvoidsetErrorHandler(org.apache.camel.Processor errorHandler) voidsetOutput(org.apache.camel.Processor output) toString()Methods inherited from class org.apache.camel.impl.engine.CamelInternalProcessor
addAdvice, addManagementInterceptStrategy, addRouteInflightRepositoryAdvice, addRouteLifecycleAdvice, addRoutePolicyAdvice, doBuild, getAdvice, process, setRouteOnAdvices, unwrap, wrapMethods inherited from class org.apache.camel.support.processor.DelegateAsyncProcessor
doInit, getProcessor, isDisabled, setDisabled, setProcessor, setProcessorMethods inherited from class org.apache.camel.support.AsyncProcessorSupport
process, processAsyncMethods inherited from class org.apache.camel.support.service.BaseService
build, doFail, doLifecycleChange, doResume, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.AsyncProcessor
process, processAsyncMethods inherited from interface org.apache.camel.Processor
processMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
DefaultChannel
public DefaultChannel(org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
getOutput
public org.apache.camel.Processor getOutput()- Specified by:
getOutputin interfaceorg.apache.camel.Channel
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceorg.apache.camel.Navigate<org.apache.camel.Processor>- Overrides:
hasNextin classorg.apache.camel.support.processor.DelegateAsyncProcessor
-
next
- Specified by:
nextin interfaceorg.apache.camel.Navigate<org.apache.camel.Processor>- Overrides:
nextin classorg.apache.camel.support.processor.DelegateAsyncProcessor
-
setOutput
public void setOutput(org.apache.camel.Processor output) -
getNextProcessor
public org.apache.camel.Processor getNextProcessor()- Specified by:
getNextProcessorin interfaceorg.apache.camel.Channel
-
setErrorHandler
public void setErrorHandler(org.apache.camel.Processor errorHandler) - Specified by:
setErrorHandlerin interfaceorg.apache.camel.Channel
-
getErrorHandler
public org.apache.camel.Processor getErrorHandler()- Specified by:
getErrorHandlerin interfaceorg.apache.camel.Channel
-
getRoute
public org.apache.camel.Route getRoute()- Specified by:
getRoutein interfaceorg.apache.camel.Channel
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.processor.DelegateAsyncProcessor- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.processor.DelegateAsyncProcessor- Throws:
Exception
-
doShutdown
- Overrides:
doShutdownin classCamelInternalProcessor- Throws:
Exception
-
initChannel
public 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 - Specified by:
initChannelin interfaceorg.apache.camel.Channel- Throws:
Exception
-
postInitChannel
- Specified by:
postInitChannelin interfaceorg.apache.camel.Channel- Throws:
Exception
-
toString
- Overrides:
toStringin classCamelInternalProcessor
-