public class ChoiceProcessor
extends org.apache.camel.support.AsyncProcessorSupport
implements org.apache.camel.Navigate<org.apache.camel.Processor>, org.apache.camel.Traceable, org.apache.camel.spi.IdAware
| Constructor and Description | 
|---|
| ChoiceProcessor(List<FilterProcessor> filters,
               org.apache.camel.Processor otherwise) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | doStart() | 
| protected void | doStop() | 
| List<FilterProcessor> | getFilters() | 
| String | getId() | 
| long | getNotFilteredCount()Gets the number of Exchanges that did not match any predicate and are routed using otherwise | 
| org.apache.camel.Processor | getOtherwise() | 
| String | getTraceLabel() | 
| boolean | hasNext() | 
| List<org.apache.camel.Processor> | next() | 
| boolean | process(org.apache.camel.Exchange exchange,
       org.apache.camel.AsyncCallback callback) | 
| void | reset()Reset counters. | 
| void | setId(String id) | 
| String | toString() | 
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic ChoiceProcessor(List<FilterProcessor> filters, org.apache.camel.Processor otherwise)
public boolean process(org.apache.camel.Exchange exchange,
                       org.apache.camel.AsyncCallback callback)
process in interface org.apache.camel.AsyncProcessorpublic String getTraceLabel()
getTraceLabel in interface org.apache.camel.Traceablepublic List<FilterProcessor> getFilters()
public org.apache.camel.Processor getOtherwise()
public long getNotFilteredCount()
public void reset()
public List<org.apache.camel.Processor> next()
next in interface org.apache.camel.Navigate<org.apache.camel.Processor>public boolean hasNext()
hasNext in interface org.apache.camel.Navigate<org.apache.camel.Processor>public String getId()
getId in interface org.apache.camel.spi.HasIdpublic void setId(String id)
setId in interface org.apache.camel.spi.IdAwareprotected void doStart()
                throws Exception
doStart in class org.apache.camel.support.AsyncProcessorSupportExceptionApache Camel