org.apache.activemq.broker.region.policy
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.
- Version:
- $Revision: 426366 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantPendingMessageLimitStrategy
public ConstantPendingMessageLimitStrategy()
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 interface PendingMessageLimitStrategy
- Returns:
- the maximum or -1 if there is no maximum
getLimit
public int getLimit()
setLimit
public void setLimit(int limit)
Copyright © 2011 Apache Software Foundation. All Rights Reserved.