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, delay, doShutdown, doStart, getDelayedCount, handleSleepInterruptedException, isAsyncDelayed, isCallerRunsWhenRejected, process, processDelay, setAsyncDelayed, setCallerRunsWhenRejecteddoStop, getProcessor, hasNext, next, setProcessor, setProcessorbuild, 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, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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.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.Expression getDelay()
public long getDelayValue()
public void setDelay(org.apache.camel.Expression delay)
protected long calculateDelay(org.apache.camel.Exchange exchange)
calculateDelay in class DelayProcessorSupportApache Camel