public interface Channel extends AsyncProcessor, Navigate<Processor>
Processor
s in the route graph.
The channel is responsible for routing the Exchange
to the next Processor
in the route graph.Modifier and Type | Method and Description |
---|---|
void |
addInterceptStrategies(List<InterceptStrategy> strategy)
|
void |
addInterceptStrategy(InterceptStrategy strategy)
|
Processor |
getErrorHandler()
Gets the
ErrorHandler this Channel uses. |
List<InterceptStrategy> |
getInterceptStrategies()
Gets the list of
InterceptStrategy registered to this Channel. |
Processor |
getNextProcessor()
Gets the next
Processor to route to (not wrapped) |
Processor |
getOutput()
Gets the wrapped output that at runtime should be delegated to.
|
RouteContext |
getRouteContext()
Gets the
RouteContext |
void |
setErrorHandler(Processor errorHandler)
Sets the
ErrorHandler this Channel uses. |
void |
setNextProcessor(Processor next)
Sets the processor that the channel should route the
Exchange to. |
void |
setOutput(Processor output)
Sets the wrapped output that at runtime should be delegated to.
|
process
void setNextProcessor(Processor next)
Exchange
to.next
- the next processorvoid setErrorHandler(Processor errorHandler)
ErrorHandler
this Channel uses.errorHandler
- the error handlerProcessor getErrorHandler()
ErrorHandler
this Channel uses.void addInterceptStrategy(InterceptStrategy strategy)
strategy
- the intercept strategyvoid addInterceptStrategies(List<InterceptStrategy> strategy)
strategy
- list of strategiesList<InterceptStrategy> getInterceptStrategies()
InterceptStrategy
registered to this Channel.Processor getOutput()
Exchange
tovoid setOutput(Processor output)
output
- the output to route the Exchange
toProcessor getNextProcessor()
Processor
to route to (not wrapped)RouteContext getRouteContext()
RouteContext
Apache Camel