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:04 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes e1d841c6b -> 6bb64ae83


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

Branch: refs/heads/3.1.x-fixes
Commit: 6bb64ae83daea6fb88a669142d7468730bd54f95
Parents: e1d841c
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:52 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/6bb64ae8/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