@Deprecated public class Delayer extends Object implements InterceptStrategy
Constructor and Description |
---|
Delayer(long delay)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
long |
getDelay()
Deprecated.
|
static Delayer |
getDelayer(CamelContext context)
Deprecated.
A helper method to return the Delayer instance for a given
CamelContext if one is enabled |
boolean |
isEnabled()
Deprecated.
|
void |
setEnabled(boolean enabled)
Deprecated.
|
String |
toString()
Deprecated.
|
Processor |
wrapProcessorInInterceptors(CamelContext context,
ProcessorDefinition<?> definition,
Processor target,
Processor nextTarget)
Deprecated.
This method is invoked by
ProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route. |
public Delayer(long delay)
public static Delayer getDelayer(CamelContext context)
CamelContext
if one is enabledcontext
- the camel context the delayer is connected topublic Processor wrapProcessorInInterceptors(CamelContext context, ProcessorDefinition<?> definition, Processor target, Processor nextTarget) throws Exception
InterceptStrategy
ProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route.
Important: See the class javadoc for advice on letting interceptor be compatible with the
asynchronous routing engine.wrapProcessorInInterceptors
in interface InterceptStrategy
context
- Camel contextdefinition
- the model this interceptor representstarget
- the processor to be wrappednextTarget
- the next processor to be routed toException
- can be thrownpublic boolean isEnabled()
public void setEnabled(boolean enabled)
public long getDelay()
Apache Camel