mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@666617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
32364744ee
commit
4b27e761c7
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
package org.apache.activemq.broker.region;
|
||||
|
||||
import java.io.IOException;
|
||||
import org.apache.activemq.broker.Broker;
|
||||
import org.apache.activemq.broker.BrokerService;
|
||||
import org.apache.activemq.broker.ConnectionContext;
|
||||
|
@ -363,5 +364,10 @@ public abstract class BaseDestination implements Destination {
|
|||
broker.isFull(context,this, usage);
|
||||
}
|
||||
}
|
||||
|
||||
public void dispose(ConnectionContext context) throws IOException {
|
||||
destinationStatistics.setParent(null);
|
||||
this.memoryUsage.stop();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -479,10 +479,10 @@ public class Queue extends BaseDestination implements Task {
|
|||
}
|
||||
|
||||
public void dispose(ConnectionContext context) throws IOException {
|
||||
super.dispose(context);
|
||||
if (store != null) {
|
||||
store.removeAllMessages(context);
|
||||
}
|
||||
destinationStatistics.setParent(null);
|
||||
}
|
||||
|
||||
public void gc(){
|
||||
|
|
|
@ -453,10 +453,10 @@ public class Topic extends BaseDestination implements Task{
|
|||
}
|
||||
|
||||
public void dispose(ConnectionContext context) throws IOException {
|
||||
super.dispose(context);
|
||||
if (topicStore != null) {
|
||||
topicStore.removeAllMessages(context);
|
||||
}
|
||||
destinationStatistics.setParent(null);
|
||||
}
|
||||
|
||||
public void gc() {
|
||||
|
|
Loading…
Reference in New Issue