|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.service.RedeliveryPolicy
Represents the redelivery policy which is used when a rollback() occurs (either JMS or XA). Various options are possible which this policy tries to capture the main variants. If enabled, a typical redelivery policy could be to use a back-off timeout period.
Constructor Summary | |
RedeliveryPolicy()
|
Method Summary | |
double |
getBackOffIncreaseRate()
|
long |
getInitialRedeliveryTimeout()
Returns the initial redelivery timeout |
int |
getMaximumRetryCount()
Returns the maximum retry count on a single message before its forwarded to a Dead Letter Queue |
boolean |
isBackOffMode()
Returns whether or not we use a back-off timeout (increasing the timeout by the getBackOffIncreaseRate() each time). |
void |
setBackOffIncreaseRate(double backOffIncreaseRate)
|
void |
setBackOffMode(boolean backOffMode)
|
void |
setInitialRedeliveryTimeout(long initialRedeliveryTimeout)
|
void |
setMaximumRetryCount(int maximumRetryCount)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RedeliveryPolicy()
Method Detail |
public boolean isBackOffMode()
getBackOffIncreaseRate()
each time).
public void setBackOffMode(boolean backOffMode)
public long getInitialRedeliveryTimeout()
public void setInitialRedeliveryTimeout(long initialRedeliveryTimeout)
public int getMaximumRetryCount()
public void setMaximumRetryCount(int maximumRetryCount)
public double getBackOffIncreaseRate()
public void setBackOffIncreaseRate(double backOffIncreaseRate)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |