org.apache.camel.processor.interceptor
Class Delayer

java.lang.Object
  extended by org.apache.camel.processor.interceptor.Delayer
All Implemented Interfaces:
InterceptStrategy

Deprecated. no longer in use, will be removed in next Camel release.

@Deprecated
public class Delayer
extends Object
implements InterceptStrategy

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

Delayer

public Delayer(long delay)
Deprecated. 
Method Detail

getDelayer

public static Delayer getDelayer(CamelContext context)
Deprecated. 
A helper method to return the Delayer instance for a given CamelContext if one is enabled

Parameters:
context - the camel context the delayer is connected to
Returns:
the delayer or null if none can be found

wrapProcessorInInterceptors

public Processor wrapProcessorInInterceptors(CamelContext context,
                                             ProcessorDefinition<?> definition,
                                             Processor target,
                                             Processor nextTarget)
                                      throws Exception
Deprecated. 
Description copied from interface: InterceptStrategy
This method is invoked by 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.

Specified by:
wrapProcessorInInterceptors in interface InterceptStrategy
Parameters:
context - Camel context
definition - the model this interceptor represents
target - the processor to be wrapped
nextTarget - the next processor to be routed to
Returns:
processor wrapped with an interceptor or not wrapped.
Throws:
Exception - can be thrown

isEnabled

public boolean isEnabled()
Deprecated. 

setEnabled

public void setEnabled(boolean enabled)
Deprecated. 

getDelay

public long getDelay()
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object


Apache Camel