activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r765212 - in /activemq/trunk: activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java activemq-jmdns_1.0/src/main/java/org/apache/activemq/jmdns/JmDNS.java
Date Wed, 15 Apr 2009 14:25:08 GMT
Author: dejanb
Date: Wed Apr 15 14:25:07 2009
New Revision: 765212

URL: http://svn.apache.org/viewvc?rev=765212&view=rev
Log:
name unnamed timers

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java
    activemq/trunk/activemq-jmdns_1.0/src/main/java/org/apache/activemq/jmdns/JmDNS.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java?rev=765212&r1=765211&r2=765212&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java
Wed Apr 15 14:25:07 2009
@@ -59,7 +59,7 @@
         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();

Modified: activemq/trunk/activemq-jmdns_1.0/src/main/java/org/apache/activemq/jmdns/JmDNS.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-jmdns_1.0/src/main/java/org/apache/activemq/jmdns/JmDNS.java?rev=765212&r1=765211&r2=765212&view=diff
==============================================================================
--- activemq/trunk/activemq-jmdns_1.0/src/main/java/org/apache/activemq/jmdns/JmDNS.java (original)
+++ activemq/trunk/activemq-jmdns_1.0/src/main/java/org/apache/activemq/jmdns/JmDNS.java Wed
Apr 15 14:25:07 2009
@@ -222,9 +222,7 @@
         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);



Mime
View raw message