public class Delayer extends DelayProcessorSupport implements Traceable, IdAware
log
processor
shutdown, 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 |
getId()
Returns the id
|
String |
getTraceLabel()
Gets the trace label used for logging when tracing is enabled.
|
void |
setDelay(Expression delay) |
void |
setId(String id)
Sets the id
|
String |
toString() |
currentSystemTime, delay, doShutdown, doStart, getDelayedCount, handleSleepInterruptedException, isAsyncDelayed, isCallerRunsWhenRejected, process, processDelay, setAsyncDelayed, setCallerRunsWhenRejected
doStop, getProcessor, hasNext, next, process, processNext, setProcessor, setProcessor
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public Delayer(CamelContext camelContext, Processor processor, Expression delay, ScheduledExecutorService executorService, boolean shutdownExecutorService)
public String toString()
toString
in class DelegateAsyncProcessor
public String getTraceLabel()
Traceable
getTraceLabel
in interface Traceable
public Expression getDelay()
public long getDelayValue()
public void setDelay(Expression delay)
protected long calculateDelay(Exchange exchange)
calculateDelay
in class DelayProcessorSupport
Apache Camel