cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Naming a jaxrs client state cleanup thread as proposed by Romain
Date Tue, 20 Dec 2016 15:29:57 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 9ef8ec440 -> ef0a8e86d


Naming a jaxrs client state cleanup thread as proposed by Romain


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

Branch: refs/heads/3.0.x-fixes
Commit: ef0a8e86d991f758064a3c4a0bcb55c39b18dbf6
Parents: 9ef8ec4
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Dec 20 15:28:02 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Dec 20 15:29:39 2016 +0000

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxrs/client/ThreadLocalClientState.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ef0a8e86/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ThreadLocalClientState.java
----------------------------------------------------------------------
diff --git a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ThreadLocalClientState.java
b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ThreadLocalClientState.java
index 7155941..d14363a 100644
--- a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ThreadLocalClientState.java
+++ b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ThreadLocalClientState.java
@@ -123,7 +123,9 @@ public class ThreadLocalClientState implements ClientState {
                 prepareCheckpointMap();
                 long currentTime = System.currentTimeMillis();
                 checkpointMap.put(Thread.currentThread(), currentTime);
-                new CleanupThread(Thread.currentThread(), currentTime).start();
+                Thread clThread = new CleanupThread(Thread.currentThread(), currentTime);
+                clThread.setName("Client state cleanup thread " + clThread.hashCode());
+                clThread.start();
             }
         }
         return cs;


Mime
View raw message