public class FilterProcessor
extends org.apache.camel.support.processor.DelegateAsyncProcessor
implements org.apache.camel.Traceable, org.apache.camel.spi.IdAware
| Constructor and Description |
|---|
FilterProcessor(org.apache.camel.Predicate predicate,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
long |
getFilteredCount()
Gets the number of Exchanges that matched the filter predicate and therefore as filtered.
|
String |
getId() |
org.apache.camel.Predicate |
getPredicate() |
String |
getTraceLabel() |
boolean |
matches(org.apache.camel.Exchange exchange) |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
reset()
Reset counters.
|
void |
setId(String id) |
String |
toString() |
doShutdown, getProcessor, hasNext, next, setProcessor, setProcessordoInit, doResume, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic FilterProcessor(org.apache.camel.Predicate predicate,
org.apache.camel.Processor processor)
public boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
process in interface org.apache.camel.AsyncProcessorprocess in class org.apache.camel.support.processor.DelegateAsyncProcessorpublic boolean matches(org.apache.camel.Exchange exchange)
public String toString()
toString in class org.apache.camel.support.processor.DelegateAsyncProcessorpublic String getId()
getId in interface org.apache.camel.spi.HasIdpublic void setId(String id)
setId in interface org.apache.camel.spi.IdAwarepublic String getTraceLabel()
getTraceLabel in interface org.apache.camel.Traceablepublic org.apache.camel.Predicate getPredicate()
public long getFilteredCount()
public void reset()
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.processor.DelegateAsyncProcessorExceptionApache Camel