File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
temporal-serviceclient/src/main/java/io/temporal/serviceclient Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1919
2020package io .temporal .serviceclient ;
2121
22+ import com .google .common .util .concurrent .ThreadFactoryBuilder ;
2223import io .grpc .Channel ;
2324import io .grpc .ClientInterceptor ;
2425import io .grpc .ClientInterceptors ;
@@ -168,7 +169,12 @@ public WorkflowServiceStubsImpl(
168169 }
169170
170171 private ScheduledExecutorService startConnectionBackoffResetter (Duration backoffResetFrequency ) {
171- ScheduledExecutorService executor = Executors .newSingleThreadScheduledExecutor ();
172+ ScheduledExecutorService executor =
173+ Executors .newSingleThreadScheduledExecutor (
174+ new ThreadFactoryBuilder ()
175+ .setDaemon (true )
176+ .setNameFormat ("ConnectionBackoffResetter-thread-%d" )
177+ .build ());
172178
173179 executor .scheduleWithFixedDelay (
174180 () -> {
You can’t perform that action at this time.
0 commit comments