public void recordCall(String endpoint) {
String now = newTimestamp();
Queue<String> timestamps = callTimestamps.get(endpoint);
if (timestamps == null) {
Queue<String> newTimestamps = new ConcurrentLinkedQueue<>();
timestamps = callTimestamps.putIfAbsent(endpoint, newTimestamps);
if (timestamps == null) {
timestamps = newTimestamps;
}
}
timestamps.add(now);
}
CallsTelemetry.java 文件源码
java
阅读 44
收藏 0
点赞 0
评论 0
项目:SpeechToText-WebSockets-Java
作者:
评论列表
文章目录