org.apache.camel.processor
Class DelayPolicy

java.lang.Object
  extended by org.apache.camel.processor.DelayPolicy
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
RedeliveryPolicy

public class DelayPolicy
extends Object
implements Cloneable, Serializable

The base policy used when a fixed delay is needed.

This policy is used by Transactional client and Dead Letter Channel. The default values is:

Version:
$Revision: 51255 $
See Also:
Serialized Form

Field Summary
protected  long delay
           
 
Constructor Summary
DelayPolicy()
           
 
Method Summary
 DelayPolicy copy()
           
 DelayPolicy delay(long delay)
          Sets the delay in milliseconds
 long getDelay()
           
 void setDelay(long delay)
          Sets the delay in milliseconds
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delay

protected long delay
Constructor Detail

DelayPolicy

public DelayPolicy()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

copy

public DelayPolicy copy()

delay

public DelayPolicy delay(long delay)
Sets the delay in milliseconds


getDelay

public long getDelay()

setDelay

public void setDelay(long delay)
Sets the delay in milliseconds



Copyright © 2009 IONA Open Source Community. All Rights Reserved.