public class FilterProcessor
extends org.apache.camel.support.processor.DelegateAsyncProcessor
implements org.apache.camel.Traceable, org.apache.camel.spi.IdAware, org.apache.camel.spi.RouteIdAware
| Constructor and Description |
|---|
FilterProcessor(org.apache.camel.CamelContext context,
org.apache.camel.Predicate predicate,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
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 |
getRouteId() |
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) |
void |
setRouteId(String routeId) |
String |
toString() |
doShutdown, getProcessor, hasNext, next, setProcessor, setProcessorbuild, doBuild, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic FilterProcessor(org.apache.camel.CamelContext context,
org.apache.camel.Predicate predicate,
org.apache.camel.Processor processor)
protected void doInit()
throws Exception
doInit in class org.apache.camel.support.service.BaseServiceExceptionpublic 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 getRouteId()
getRouteId in interface org.apache.camel.spi.RouteIdAwarepublic void setRouteId(String routeId)
setRouteId in interface org.apache.camel.spi.RouteIdAwarepublic 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