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:28:30 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 6173599f9 -> 29a822225


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/29a82222
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/29a82222
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/29a82222

Branch: refs/heads/master
Commit: 29a822225e5c3984563cbefb146f983d072967bb
Parents: 6173599
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:28:02 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/29a82222/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 4458148..d6b4313 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