use of com.navercorp.pinpoint.rpc.client.ClientChannelFactory in project pinpoint by naver.
the class SpanStatChannelFactoryProvider method get.
@Override
public ChannelFactory get() {
int workerCount = 0;
if ("TCP".equalsIgnoreCase(thriftTransportConfig.getSpanDataSenderTransportType())) {
workerCount++;
}
if ("TCP".equalsIgnoreCase(thriftTransportConfig.getStatDataSenderTransportType())) {
workerCount++;
}
if (workerCount == 0) {
return null;
} else {
Timer timer = connectTimerProvider.get();
final ClientChannelFactory clientChannelFactory = new ClientChannelFactory();
return clientChannelFactory.createChannelFactory(1, workerCount, timer);
}
}
Aggregations