Class ConstantPendingMessageLimitStrategy
- java.lang.Object
-
- org.apache.activemq.broker.region.policy.ConstantPendingMessageLimitStrategy
-
- All Implemented Interfaces:
PendingMessageLimitStrategy
public class ConstantPendingMessageLimitStrategy extends Object implements PendingMessageLimitStrategy
This PendingMessageLimitStrategy is configured to a constant value for all subscriptions.
-
-
Constructor Summary
Constructors Constructor Description ConstantPendingMessageLimitStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLimit()intgetMaximumPendingMessageLimit(TopicSubscription subscription)Calculate the maximum number of pending messages (in excess of the prefetch size) for the given subscriptionvoidsetLimit(int limit)
-
-
-
Method Detail
-
getMaximumPendingMessageLimit
public int getMaximumPendingMessageLimit(TopicSubscription subscription)
Description copied from interface:PendingMessageLimitStrategyCalculate the maximum number of pending messages (in excess of the prefetch size) for the given subscription- Specified by:
getMaximumPendingMessageLimitin interfacePendingMessageLimitStrategy- Returns:
- the maximum or -1 if there is no maximum
-
getLimit
public int getLimit()
-
setLimit
public void setLimit(int limit)
-
-