Package com.google.cloud.grpc
Class GcpThreadFactory
java.lang.Object
com.google.cloud.grpc.GcpThreadFactory
Thread factory helper for grpc-gcp background executors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSystem property to control daemon threads for grpc-gcp background executors. -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadFactorynewThreadFactory(String nameFormat) Creates aThreadFactorythat names threads and honors the daemon-thread setting.
-
Field Details
-
USE_DAEMON_THREADS_PROPERTY
System property to control daemon threads for grpc-gcp background executors.- See Also:
-
-
Method Details
-
newThreadFactory
Creates aThreadFactorythat names threads and honors the daemon-thread setting.Defaults to daemon threads to avoid keeping the JVM alive when only background work remains. Set
-Dcom.google.cloud.grpc.use_daemon_threads=falseto use non-daemon threads.
-