Package org.apache.activemq
Class RedeliveryPolicy
- java.lang.Object
-
- org.apache.activemq.filter.DestinationMapEntry
-
- 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
Fields Modifier and Type Field Description protected double
backOffMultiplier
protected double
collisionAvoidanceFactor
static int
DEFAULT_MAXIMUM_REDELIVERIES
protected long
initialRedeliveryDelay
protected int
maximumRedeliveries
protected long
maximumRedeliveryDelay
static int
NO_MAXIMUM_REDELIVERIES
protected boolean
preDispatchCheck
protected long
redeliveryDelay
protected boolean
useCollisionAvoidance
protected boolean
useExponentialBackOff
-
Fields inherited from class org.apache.activemq.filter.DestinationMapEntry
destination
-
-
Constructor Summary
Constructors Constructor Description RedeliveryPolicy()
-
Method Summary
-
Methods inherited from class org.apache.activemq.filter.DestinationMapEntry
compareTo, getDestination, getValue, setDestination, setQueue, setTempQueue, setTempTopic, setTopic
-
-
-
-
Field Detail
-
NO_MAXIMUM_REDELIVERIES
public static final int NO_MAXIMUM_REDELIVERIES
- See Also:
- Constant Field Values
-
DEFAULT_MAXIMUM_REDELIVERIES
public static final int DEFAULT_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
-
preDispatchCheck
protected boolean preDispatchCheck
-
-
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()
-
setPreDispatchCheck
public void setPreDispatchCheck(boolean preDispatchCheck)
-
isPreDispatchCheck
public boolean isPreDispatchCheck()
-
-