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;
|
package org.apache.activemq.broker.region;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import org.apache.activemq.broker.Broker;
|
import org.apache.activemq.broker.Broker;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.ConnectionContext;
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -479,10 +479,10 @@ public class Queue extends BaseDestination implements Task {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dispose(ConnectionContext context) throws IOException {
|
public void dispose(ConnectionContext context) throws IOException {
|
||||||
|
super.dispose(context);
|
||||||
if (store != null) {
|
if (store != null) {
|
||||||
store.removeAllMessages(context);
|
store.removeAllMessages(context);
|
||||||
}
|
}
|
||||||
destinationStatistics.setParent(null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void gc(){
|
public void gc(){
|
||||||
|
|
|
@ -453,10 +453,10 @@ public class Topic extends BaseDestination implements Task{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dispose(ConnectionContext context) throws IOException {
|
public void dispose(ConnectionContext context) throws IOException {
|
||||||
|
super.dispose(context);
|
||||||
if (topicStore != null) {
|
if (topicStore != null) {
|
||||||
topicStore.removeAllMessages(context);
|
topicStore.removeAllMessages(context);
|
||||||
}
|
}
|
||||||
destinationStatistics.setParent(null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void gc() {
|
public void gc() {
|
||||||
|
|
Loading…
Reference in New Issue