MCPcopy Create free account
hub / github.com/grpc/grpc-java / getThreadFactory

Method getThreadFactory

core/src/main/java/io/grpc/internal/GrpcUtil.java:622–627  ·  view source on GitHub ↗

Get a ThreadFactory suitable for use in the current environment. @param nameFormat to apply to threads created by the factory. @param daemon true if the threads the factory creates are daemon threads, false otherwise. @return a ThreadFactory.

(String nameFormat, boolean daemon)

Source from the content-addressed store, hash-verified

620 * @return a {@link ThreadFactory}.
621 */
622 public static ThreadFactory getThreadFactory(String nameFormat, boolean daemon) {
623 return new ThreadFactoryBuilder()
624 .setDaemon(daemon)
625 .setNameFormat(nameFormat)
626 .build();
627 }
628
629 /**
630 * The factory of default Stopwatches.

Callers 3

createMethod · 0.95
createMethod · 0.95

Calls 1

buildMethod · 0.65

Tested by

no test coverage detected