|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.broker.region.policy.PrefetchRatePendingMessageLimitStrategy
public class PrefetchRatePendingMessageLimitStrategy
This PendingMessageLimitStrategy sets the maximum pending message limit value to be a multiplier of the prefetch limit of the subscription.
Constructor Summary | |
---|---|
PrefetchRatePendingMessageLimitStrategy()
|
Method Summary | |
---|---|
int |
getMaximumPendingMessageLimit(TopicSubscription subscription)
Calculate the maximum number of pending messages (in excess of the prefetch size) for the given subscription |
double |
getMultiplier()
|
void |
setMultiplier(double rate)
Sets the multiplier of the prefetch size which will be used to define the maximum number of pending messages for non-durable topics before messages are discarded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrefetchRatePendingMessageLimitStrategy()
Method Detail |
---|
public int getMaximumPendingMessageLimit(TopicSubscription subscription)
PendingMessageLimitStrategy
getMaximumPendingMessageLimit
in interface PendingMessageLimitStrategy
public double getMultiplier()
public void setMultiplier(double rate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |