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, setProcessorbuild, doBuild, doInit, doResume, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic 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.AsyncProcessorprocess in class org.apache.camel.support.processor.DelegateAsyncProcessorprotected 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.Traceablepublic String getId()
getId in interface org.apache.camel.spi.HasIdpublic void setId(String id)
setId in interface org.apache.camel.spi.IdAwarepublic String toString()
toString in class org.apache.camel.support.processor.DelegateAsyncProcessorApache Camel