public class LoopProcessor
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 |
---|
LoopProcessor(org.apache.camel.CamelContext camelContext,
org.apache.camel.Processor processor,
org.apache.camel.Expression expression,
org.apache.camel.Predicate predicate,
boolean copy) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Expression |
getExpression() |
String |
getId() |
org.apache.camel.Predicate |
getPredicate() |
String |
getRouteId() |
String |
getTraceLabel() |
boolean |
isCopy() |
protected org.apache.camel.Exchange |
prepareExchange(org.apache.camel.Exchange exchange,
int index)
Prepares the exchange for the next iteration
|
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
setId(String id) |
void |
setRouteId(String routeId) |
String |
toString() |
doShutdown, doStart, doStop, 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 LoopProcessor(org.apache.camel.CamelContext camelContext, org.apache.camel.Processor processor, org.apache.camel.Expression expression, org.apache.camel.Predicate predicate, boolean copy)
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
protected org.apache.camel.Exchange prepareExchange(org.apache.camel.Exchange exchange, int index)
exchange
- the exchangeindex
- the index of the next iterationpublic org.apache.camel.Expression getExpression()
public org.apache.camel.Predicate getPredicate()
public boolean isCopy()
public String getTraceLabel()
getTraceLabel
in interface org.apache.camel.Traceable
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 getRouteId()
getRouteId
in interface org.apache.camel.spi.RouteIdAware
public void setRouteId(String routeId)
setRouteId
in interface org.apache.camel.spi.RouteIdAware
public String toString()
toString
in class org.apache.camel.support.processor.DelegateAsyncProcessor
Apache Camel