mirror of https://github.com/apache/activemq.git
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:
parent
e6790674dc
commit
4441fa7442
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue