Package org.apache.camel
Interface Channel
-
- All Superinterfaces:
AsyncProcessor,Navigate<Processor>,Processor
public interface Channel extends AsyncProcessor, Navigate<Processor>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessorgetErrorHandler()Gets theErrorHandlerthis Channel uses.ProcessorgetNextProcessor()Gets the nextProcessorto route to (not wrapped)ProcessorgetOutput()Gets the wrapped output that at runtime should be delegated to.RoutegetRoute()Gets theRoutevoidinitChannel(Route route, NamedNode definition, NamedNode childDefinition, List<InterceptStrategy> interceptors, Processor nextProcessor, NamedRoute routeDefinition, boolean first)Initializes the channel.voidpostInitChannel()Post initializes the channel.voidsetErrorHandler(Processor errorHandler)Sets theErrorHandlerthis Channel uses.-
Methods inherited from interface org.apache.camel.AsyncProcessor
process, processAsync
-
-
-
-
Method Detail
-
initChannel
void initChannel(Route route, NamedNode definition, NamedNode childDefinition, List<InterceptStrategy> interceptors, Processor nextProcessor, NamedRoute routeDefinition, boolean first) throws Exception
Initializes the channel. If the initialized output definition contained outputs (children) then the childDefinition will be set so we can leverage fine grained tracing- Throws:
Exception
-
postInitChannel
void postInitChannel() throws ExceptionPost initializes the channel.- Throws:
Exception- is thrown if some error occurred
-
getErrorHandler
Processor getErrorHandler()
Gets theErrorHandlerthis Channel uses.- Returns:
- the error handler, or null if no error handler is used.
-
setErrorHandler
void setErrorHandler(Processor errorHandler)
Sets theErrorHandlerthis Channel uses.- Parameters:
errorHandler- the error handler
-
getOutput
Processor getOutput()
Gets the wrapped output that at runtime should be delegated to.- Returns:
- the output to route the
Exchangeto
-
getNextProcessor
Processor getNextProcessor()
Gets the nextProcessorto route to (not wrapped)- Returns:
- the next processor
-
-