public class Delayer extends DelayProcessorSupport implements Traceable
logprocessorshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
Delayer(CamelContext camelContext,
Processor processor,
Expression delay,
ScheduledExecutorService executorService,
boolean shutdownExecutorService) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
calculateDelay(Exchange exchange) |
Expression |
getDelay() |
long |
getDelayValue() |
String |
getTraceLabel()
Gets the trace label used for logging when tracing is enabled.
|
void |
setDelay(Expression delay) |
String |
toString() |
currentSystemTime, delay, doShutdown, doStart, getDelayedCount, handleSleepInterruptedException, isAsyncDelayed, isCallerRunsWhenRejected, process, processDelay, setAsyncDelayed, setCallerRunsWhenRejecteddoStop, getProcessor, hasNext, next, process, processNext, setProcessor, setProcessordoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic Delayer(CamelContext camelContext, Processor processor, Expression delay, ScheduledExecutorService executorService, boolean shutdownExecutorService)
public String toString()
toString in class DelegateAsyncProcessorpublic String getTraceLabel()
TraceablegetTraceLabel in interface Traceablepublic Expression getDelay()
public long getDelayValue()
public void setDelay(Expression delay)
protected long calculateDelay(Exchange exchange)
calculateDelay in class DelayProcessorSupportApache Camel