org.apache.activemq
Class RedeliveryPolicy

java.lang.Object
  extended by org.apache.activemq.filter.DestinationMapEntry
      extended by org.apache.activemq.RedeliveryPolicy
All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class RedeliveryPolicy
extends DestinationMapEntry
implements Cloneable, Serializable

Configuration options for a messageConsumer used to control how messages are re-delivered when they are rolled back. May be used server side on a per destination basis via the Broker RedeliveryPlugin

See Also:
Serialized Form

Field Summary
protected  double backOffMultiplier
           
protected  double collisionAvoidanceFactor
           
protected  long initialRedeliveryDelay
           
protected  int maximumRedeliveries
           
protected  long maximumRedeliveryDelay
           
static int NO_MAXIMUM_REDELIVERIES
           
protected  long redeliveryDelay
           
protected  boolean useCollisionAvoidance
           
protected  boolean useExponentialBackOff
           
 
Fields inherited from class org.apache.activemq.filter.DestinationMapEntry
destination
 
Constructor Summary
RedeliveryPolicy()
           
 
Method Summary
 RedeliveryPolicy copy()
           
 double getBackOffMultiplier()
           
 short getCollisionAvoidancePercent()
           
 long getInitialRedeliveryDelay()
           
 int getMaximumRedeliveries()
           
 long getMaximumRedeliveryDelay()
           
 long getNextRedeliveryDelay(long previousDelay)
           
protected static Random getRandomNumberGenerator()
           
 long getRedeliveryDelay()
           
 boolean isUseCollisionAvoidance()
           
 boolean isUseExponentialBackOff()
           
 void setBackOffMultiplier(double backOffMultiplier)
           
 void setCollisionAvoidancePercent(short collisionAvoidancePercent)
           
 void setInitialRedeliveryDelay(long initialRedeliveryDelay)
           
 void setMaximumRedeliveries(int maximumRedeliveries)
           
 void setMaximumRedeliveryDelay(long maximumRedeliveryDelay)
           
 void setRedeliveryDelay(long redeliveryDelay)
           
 void setUseCollisionAvoidance(boolean useCollisionAvoidance)
           
 void setUseExponentialBackOff(boolean useExponentialBackOff)
           
 String toString()
           
 
Methods inherited from class org.apache.activemq.filter.DestinationMapEntry
compareTo, getDestination, getValue, setDestination, setQueue, setTempQueue, setTempTopic, setTopic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_MAXIMUM_REDELIVERIES

public static final int NO_MAXIMUM_REDELIVERIES
See Also:
Constant Field Values

collisionAvoidanceFactor

protected double collisionAvoidanceFactor

maximumRedeliveries

protected int maximumRedeliveries

maximumRedeliveryDelay

protected long maximumRedeliveryDelay

initialRedeliveryDelay

protected long initialRedeliveryDelay

useCollisionAvoidance

protected boolean useCollisionAvoidance

useExponentialBackOff

protected boolean useExponentialBackOff

backOffMultiplier

protected double backOffMultiplier

redeliveryDelay

protected long redeliveryDelay
Constructor Detail

RedeliveryPolicy

public RedeliveryPolicy()
Method Detail

copy

public RedeliveryPolicy copy()

getBackOffMultiplier

public double getBackOffMultiplier()

setBackOffMultiplier

public void setBackOffMultiplier(double backOffMultiplier)

getCollisionAvoidancePercent

public short getCollisionAvoidancePercent()

setCollisionAvoidancePercent

public void setCollisionAvoidancePercent(short collisionAvoidancePercent)

getInitialRedeliveryDelay

public long getInitialRedeliveryDelay()

setInitialRedeliveryDelay

public void setInitialRedeliveryDelay(long initialRedeliveryDelay)

getMaximumRedeliveryDelay

public long getMaximumRedeliveryDelay()

setMaximumRedeliveryDelay

public void setMaximumRedeliveryDelay(long maximumRedeliveryDelay)

getMaximumRedeliveries

public int getMaximumRedeliveries()

setMaximumRedeliveries

public void setMaximumRedeliveries(int maximumRedeliveries)

getNextRedeliveryDelay

public long getNextRedeliveryDelay(long previousDelay)

isUseCollisionAvoidance

public boolean isUseCollisionAvoidance()

setUseCollisionAvoidance

public void setUseCollisionAvoidance(boolean useCollisionAvoidance)

isUseExponentialBackOff

public boolean isUseExponentialBackOff()

setUseExponentialBackOff

public void setUseExponentialBackOff(boolean useExponentialBackOff)

getRandomNumberGenerator

protected static Random getRandomNumberGenerator()

setRedeliveryDelay

public void setRedeliveryDelay(long redeliveryDelay)

getRedeliveryDelay

public long getRedeliveryDelay()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.