curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cammcken...@apache.org
Subject [01/50] curator git commit: Added method to provide old behavior
Date Tue, 21 Apr 2015 23:06:58 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-154 64973b0d9 -> 6e16d0d5c


Added method to provide old behavior


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/40b2cd80
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/40b2cd80
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/40b2cd80

Branch: refs/heads/CURATOR-154
Commit: 40b2cd80206fc4b9327f5033d0873375a8706c4a
Parents: 870b658
Author: randgalt <randgalt@apache.org>
Authored: Mon Jan 12 14:37:20 2015 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Mon Jan 12 14:37:20 2015 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/curator/utils/ThreadUtils.java     | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/40b2cd80/curator-client/src/main/java/org/apache/curator/utils/ThreadUtils.java
----------------------------------------------------------------------
diff --git a/curator-client/src/main/java/org/apache/curator/utils/ThreadUtils.java b/curator-client/src/main/java/org/apache/curator/utils/ThreadUtils.java
index ca1080d..8960ec0 100644
--- a/curator-client/src/main/java/org/apache/curator/utils/ThreadUtils.java
+++ b/curator-client/src/main/java/org/apache/curator/utils/ThreadUtils.java
@@ -48,10 +48,7 @@ public class ThreadUtils
 
     public static ThreadFactory newThreadFactory(String processName)
     {
-        return new ThreadFactoryBuilder()
-            .setNameFormat("Curator-" + processName + "-%d")
-            .setDaemon(true)
-            .build();
+        return newGenericThreadFactory("Curator-" + processName);
     }
 
     public static ThreadFactory newGenericThreadFactory(String processName)


Mime
View raw message