1 18 package org.apache.activemq.broker.region.policy; 19 20 import org.apache.activemq.broker.region.TopicSubscription; 21 22 29 public class ConstantPendingMessageLimitStrategy implements PendingMessageLimitStrategy { 30 31 private int limit = -1; 32 33 public int getMaximumPendingMessageLimit(TopicSubscription subscription) { 34 return limit; 35 } 36 37 public int getLimit() { 38 return limit; 39 } 40 41 public void setLimit(int limit) { 42 this.limit = limit; 43 } 44 } 45 | Popular Tags |