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() |
doInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public 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.AsyncProcessor
public String getTraceLabel()
getTraceLabel
in interface org.apache.camel.Traceable
public 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.HasId
public void setId(String id)
setId
in interface org.apache.camel.spi.IdAware
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.AsyncProcessorSupport
Exception
Apache Camel