CallsTelemetry.java 文件源码

java
阅读 44 收藏 0 点赞 0 评论 0

项目:SpeechToText-WebSockets-Java 作者:
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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号