mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@963096 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2705e3606f
commit
70314ea8a6
|
@ -89,6 +89,8 @@ public class PolicyEntry extends DestinationMapEntry {
|
|||
private SlowConsumerStrategy slowConsumerStrategy;
|
||||
private boolean prioritizedMessages;
|
||||
private boolean allConsumersExclusiveByDefault;
|
||||
private boolean gcInactiveDestinations;
|
||||
private long inactiveTimoutBeforeGC = BaseDestination.DEFAULT_INACTIVE_TIMEOUT_BEFORE_GC;
|
||||
|
||||
|
||||
public void configure(Broker broker,Queue queue) {
|
||||
|
@ -159,6 +161,8 @@ public class PolicyEntry extends DestinationMapEntry {
|
|||
}
|
||||
destination.setSlowConsumerStrategy(scs);
|
||||
destination.setPrioritizedMessages(isPrioritizedMessages());
|
||||
destination.setGcIfInactive(isGcInactiveDestinations());
|
||||
destination.setInactiveTimoutBeforeGC(getInactiveTimoutBeforeGC());
|
||||
}
|
||||
|
||||
public void configure(Broker broker, SystemUsage memoryManager, TopicSubscription subscription) {
|
||||
|
@ -761,4 +765,20 @@ public class PolicyEntry extends DestinationMapEntry {
|
|||
return allConsumersExclusiveByDefault;
|
||||
}
|
||||
|
||||
public boolean isGcInactiveDestinations() {
|
||||
return this.gcInactiveDestinations;
|
||||
}
|
||||
|
||||
public void setGcInactiveDestinations(boolean gcInactiveDestinations) {
|
||||
this.gcInactiveDestinations = gcInactiveDestinations;
|
||||
}
|
||||
|
||||
public long getInactiveTimoutBeforeGC() {
|
||||
return this.inactiveTimoutBeforeGC;
|
||||
}
|
||||
|
||||
public void setInactiveTimoutBeforeGC(long inactiveTimoutBeforeGC) {
|
||||
this.inactiveTimoutBeforeGC = inactiveTimoutBeforeGC;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue