use of com.navercorp.pinpoint.profiler.sender.grpc.MetadataGrpcDataSender in project pinpoint by naver.
the class MetadataGrpcDataSenderProvider method get.
@Override
public EnhancedDataSender<MetaDataType> get() {
final String collectorIp = grpcTransportConfig.getMetadataCollectorIp();
final int collectorPort = grpcTransportConfig.getMetadataCollectorPort();
final boolean sslEnable = grpcTransportConfig.isMetadataSslEnable();
final int senderExecutorQueueSize = grpcTransportConfig.getMetadataSenderExecutorQueueSize();
final ChannelFactoryBuilder channelFactoryBuilder = newChannelFactoryBuilder(sslEnable);
final ChannelFactory channelFactory = channelFactoryBuilder.build();
final int retryMaxCount = grpcTransportConfig.getMetadataRetryMaxCount();
final int retryDelayMillis = grpcTransportConfig.getMetadataRetryDelayMillis();
return new MetadataGrpcDataSender<>(collectorIp, collectorPort, senderExecutorQueueSize, messageConverter, channelFactory, retryMaxCount, retryDelayMillis);
}
Aggregations