git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@666617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-06-11 10:54:26 +00:00
parent 32364744ee
commit 4b27e761c7
3 changed files with 8 additions and 2 deletions

View File

@ -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;
@ -364,4 +365,9 @@ public abstract class BaseDestination implements Destination {
}
}
public void dispose(ConnectionContext context) throws IOException {
destinationStatistics.setParent(null);
this.memoryUsage.stop();
}
}

View File

@ -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(){

View File

@ -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() {