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 int
getLimit()
int
getMaximumPendingMessageLimit(TopicSubscription subscription)
Calculate the maximum number of pending messages (in excess of the prefetch size) for the given subscriptionvoid
setLimit(int limit)
-
-
-
Method Detail
-
getMaximumPendingMessageLimit
public int getMaximumPendingMessageLimit(TopicSubscription subscription)
Description copied from interface:PendingMessageLimitStrategy
Calculate the maximum number of pending messages (in excess of the prefetch size) for the given subscription- Specified by:
getMaximumPendingMessageLimit
in interfacePendingMessageLimitStrategy
- Returns:
- the maximum or -1 if there is no maximum
-
getLimit
public int getLimit()
-
setLimit
public void setLimit(int limit)
-
-