com.slack.api.rate_limits.metrics.LiveRequestStats Maven / Gradle / Ivy
The newest version!
package com.slack.api.rate_limits.metrics;
import lombok.Data;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicLong;
@Data
public class LiveRequestStats {
private Long lastRequestTimestampMillis;
private final ConcurrentMap allCompletedCalls = new ConcurrentHashMap<>();
private final ConcurrentMap successfulCalls = new ConcurrentHashMap<>();
private final ConcurrentMap unsuccessfulCalls = new ConcurrentHashMap<>();
private final ConcurrentMap failedCalls = new ConcurrentHashMap<>();
private final ConcurrentMap currentQueueSize = new ConcurrentHashMap<>();
private final ConcurrentMap lastMinuteRequests = new ConcurrentHashMap<>();
private final ConcurrentMap rateLimitedMethods = new ConcurrentHashMap<>();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy