use of io.grpc.internal.PinpointDnsNameResolverProvider in project pinpoint by naver.
the class ChannelFactoryTest method setUp.
@BeforeClass
public static void setUp() throws Exception {
dnsExecutorService = newCachedExecutorService("dnsExecutor");
nameResolverProvider = new PinpointDnsNameResolverProvider("dnsExecutor", dnsExecutorService);
executorService = Executors.newCachedThreadPool(PinpointThreadFactory.createThreadFactory("test-executor"));
server = serverStart(executorService);
server.start();
}
use of io.grpc.internal.PinpointDnsNameResolverProvider in project pinpoint by naver.
the class GrpcNameResolverProvider method get.
@Override
public NameResolverProvider get() {
ExecutorService executorService = dnsExecutorService.get();
NameResolverProvider nameResolverProvider = new PinpointDnsNameResolverProvider("pinpoint-dns", executorService);
return nameResolverProvider;
}
Aggregations