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, setProcessor
build, doBuild, doInit, doResume, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public 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.AsyncProcessor
process
in class org.apache.camel.support.processor.DelegateAsyncProcessor
public boolean matches(org.apache.camel.Exchange exchange)
public String toString()
toString
in class org.apache.camel.support.processor.DelegateAsyncProcessor
public String getId()
getId
in interface org.apache.camel.spi.HasId
public void setId(String id)
setId
in interface org.apache.camel.spi.IdAware
public String getTraceLabel()
getTraceLabel
in interface org.apache.camel.Traceable
public org.apache.camel.Predicate getPredicate()
public long getFilteredCount()
public void reset()
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.processor.DelegateAsyncProcessor
Exception
Apache Camel