File tree Expand file tree Collapse file tree
branches/autosynth-firestore/google-cloud-clients/google-cloud-core-grpc/src/main/java/com/google/cloud/grpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ refs/heads/autosynth-containeranalysis: 18d210f81f17cf74864d0db2c29e834302f74f2a
130130refs/heads/autosynth-datastore: f1efc3dc465174f41041acd56cf29badcec3e5bd
131131refs/heads/autosynth-dialogflow: 73974cc32e5212aec0126472e0bc1442886fedaf
132132refs/heads/autosynth-errorreporting: effe8001d110ad584187b30aafc473db0dd4a15f
133- refs/heads/autosynth-firestore: db3241b30b41cc97457009ab8665485b2d3762b9
133+ refs/heads/autosynth-firestore: 575eca4e5ac9c16ff7ce438227b44fdb7e213aad
134134refs/heads/autosynth-iot: 4025d1804241e74d54950a324dc4f667aeaad4b3
135135refs/heads/autosynth-kms: 6b65b0f34c12d141031c7288cdc01e550212d0f6
136136refs/heads/autosynth-language: e73905aa7672afa47240e65b25c087207f4594f9
Original file line number Diff line number Diff line change 3131import com .google .cloud .NoCredentials ;
3232import com .google .cloud .ServiceOptions ;
3333import com .google .cloud .TransportOptions ;
34+ import com .google .common .util .concurrent .ThreadFactoryBuilder ;
3435import io .grpc .internal .SharedResourceHolder ;
3536import io .grpc .internal .SharedResourceHolder .Resource ;
3637import java .io .IOException ;
@@ -54,7 +55,13 @@ public class GrpcTransportOptions implements TransportOptions {
5455 new Resource <ScheduledExecutorService >() {
5556 @ Override
5657 public ScheduledExecutorService create () {
57- ScheduledThreadPoolExecutor service = new ScheduledThreadPoolExecutor (8 );
58+ ScheduledThreadPoolExecutor service =
59+ new ScheduledThreadPoolExecutor (
60+ 8 ,
61+ new ThreadFactoryBuilder ()
62+ .setDaemon (true )
63+ .setNameFormat ("grpc-transport-%d" )
64+ .build ());
5865 service .setKeepAliveTime (5 , TimeUnit .SECONDS );
5966 service .allowCoreThreadTimeOut (true );
6067 service .setRemoveOnCancelPolicy (true );
You can’t perform that action at this time.
0 commit comments