public class LoopProcessor
extends org.apache.camel.support.processor.DelegateAsyncProcessor
implements org.apache.camel.Traceable, org.apache.camel.spi.IdAware
Constructor and Description |
---|
LoopProcessor(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 |
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) |
String |
toString() |
doShutdown, doStart, doStop, getProcessor, hasNext, next, setProcessor, setProcessor
doInit, doResume, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public LoopProcessor(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 toString()
toString
in class org.apache.camel.support.processor.DelegateAsyncProcessor
Apache Camel