name unnamed timers

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@765212 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2009-04-15 14:25:07 +00:00
parent e6790674dc
commit 4441fa7442
2 changed files with 2 additions and 4 deletions

View File

@ -59,7 +59,7 @@ public abstract class AbstractTempRegion extends AbstractRegion {
this.doCacheTempDestinations=broker.getBrokerService().isCacheTempDestinations();
this.purgeTime = broker.getBrokerService().getTimeBeforePurgeTempDestinations();
if (this.doCacheTempDestinations) {
this.purgeTimer = new Timer(true);
this.purgeTimer = new Timer("ActiveMQ Temp destination purge timer", true);
this.purgeTask = new TimerTask() {
public void run() {
doPurge();

View File

@ -222,9 +222,7 @@ public class JmDNS
services = new Hashtable(20);
serviceTypes = new Hashtable(20);
// REMIND: If I could pass in a name for the Timer thread,
// I would pass 'JmDNS.Timer'.
timer = new Timer();
timer = new Timer("JmDNS.Timer");
new RecordReaper().start();
shutdown = new Thread(new Shutdown(), "JmDNS.Shutdown");
Runtime.getRuntime().addShutdownHook(shutdown);