Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache » activemq » broker » region » policy » [javadoc | source]
public interface: PendingMessageLimitStrategy [javadoc | source]

All Known Implementing Classes:
    PrefetchRatePendingMessageLimitStrategy, ConstantPendingMessageLimitStrategy

A pluggable strategy to calculate the maximum number of messages that are allowed to be pending on consumers (in addition to their prefetch sizes). Once the limit is reached, non-durable topics can then start discarding old messages. This allows us to keep dispatching messages to slow consumers while not blocking fast consumers and discarding the messages oldest first.
Method from Summary:
Method from Detail:
 public int getMaximumPendingMessageLimit(TopicSubscription subscription)
    Calculate the maximum number of pending messages (in excess of the prefetch size) for the given subscription