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 -
Method Summary
Modifier and TypeMethodDescriptionintgetLimit()intgetMaximumPendingMessageLimit(TopicSubscription subscription) Calculate the maximum number of pending messages (in excess of the prefetch size) for the given subscriptionvoidsetLimit(int limit)
-
Constructor Details
-
ConstantPendingMessageLimitStrategy
public ConstantPendingMessageLimitStrategy()
-
-
Method Details
-
getMaximumPendingMessageLimit
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)
-