public class Delayer extends DelayProcessorSupport implements org.apache.camel.Traceable, org.apache.camel.spi.IdAware, org.apache.camel.spi.RouteIdAware
Constructor and Description |
---|
Delayer(org.apache.camel.CamelContext camelContext,
org.apache.camel.Processor processor,
org.apache.camel.Expression delay,
ScheduledExecutorService executorService,
boolean shutdownExecutorService) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateDelay(org.apache.camel.Exchange exchange) |
org.apache.camel.Expression |
getDelay() |
long |
getDelayValue() |
String |
getId() |
String |
getRouteId() |
String |
getTraceLabel() |
void |
setDelay(org.apache.camel.Expression delay) |
void |
setId(String id) |
void |
setRouteId(String routeId) |
String |
toString() |
currentSystemTime, deferShutdown, delay, doShutdown, doStart, getDelayedCount, getPendingExchangesSize, handleSleepInterruptedException, isAsyncDelayed, isCallerRunsWhenRejected, prepareShutdown, process, processDelay, setAsyncDelayed, setCallerRunsWhenRejected
doStop, getProcessor, hasNext, next, setProcessor, setProcessor
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Delayer(org.apache.camel.CamelContext camelContext, org.apache.camel.Processor processor, org.apache.camel.Expression delay, ScheduledExecutorService executorService, boolean shutdownExecutorService)
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 getRouteId()
getRouteId
in interface org.apache.camel.spi.RouteIdAware
public void setRouteId(String routeId)
setRouteId
in interface org.apache.camel.spi.RouteIdAware
public String getTraceLabel()
getTraceLabel
in interface org.apache.camel.Traceable
public org.apache.camel.Expression getDelay()
public long getDelayValue()
public void setDelay(org.apache.camel.Expression delay)
protected long calculateDelay(org.apache.camel.Exchange exchange)
calculateDelay
in class DelayProcessorSupport
Apache Camel