|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.processor.interceptor.Delayer
@Deprecated public class Delayer
An interceptor strategy for delaying routes.
Constructor Summary | |
---|---|
Delayer(long delay)
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Delayer(long delay)
Method Detail |
---|
public static Delayer getDelayer(CamelContext context)
CamelContext
if one is enabled
context
- the camel context the delayer is connected to
public 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 to
Exception
- can be thrownpublic boolean isEnabled()
public void setEnabled(boolean enabled)
public long getDelay()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |