ESBCOMP-101 Override close method to close the timer task thread

master
David BRASSELY 2014-03-28 14:52:58 +01:00
parent 4774546cfa
commit 22adb186a5
1 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,12 @@ public class ThrottlingFilter extends AbstractExchangeFilter {
mEndptThrottleMap = new HashMap<EndpointInfo, ThrottlingEndpointInfo>();
}
@Override
public void close() {
super.close();
timer.cancel();
}
/** @see com.sun.jbi.common.qos.messaging.filter.AbstractExchangeFilter#acceptsServiceQuality(com.sun.jbi.common.qos.ServiceQuality) */
protected boolean acceptsServiceQuality(ServiceQuality srvcQual) {
return (srvcQual instanceof ThrottlingConfig);