For the InstantiatingExecutorProvider, log the thread pool size for users to determine.
|
public static Builder newIOBuilder() { |
|
int numCpus = Runtime.getRuntime().availableProcessors(); |
|
int numThreads = IO_THREAD_MULTIPLIER * Math.max(MIN_THREAD_AMOUNT, numCpus); |
|
|
|
return new AutoValue_InstantiatingExecutorProvider.Builder() |
|
.setExecutorThreadCount(numThreads) |
|
.setThreadFactory(DEFAULT_THREAD_FACTORY); |
|
} |
For the InstantiatingExecutorProvider, log the thread pool size for users to determine.
sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/core/InstantiatingExecutorProvider.java
Lines 95 to 102 in 5dadd4c