Class RequestStats
java.lang.Object
com.slack.api.rate_limits.metrics.RequestStats
public class RequestStats extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestStats.RequestStatsBuilder
-
Constructor Summary
Constructors Constructor Description RequestStats()
RequestStats(Map<String,Long> allCompletedCalls, Map<String,Long> successfulCalls, Map<String,Long> unsuccessfulCalls, Map<String,Long> failedCalls, Map<String,Integer> currentQueueSize, Map<String,Integer> lastMinuteRequests, Map<String,Long> rateLimitedMethods)
-
Method Summary
Modifier and Type Method Description static RequestStats.RequestStatsBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
Map<String,Long>
getAllCompletedCalls()
Method name -> # of callsMap<String,Integer>
getCurrentQueueSize()
Method name -> The queue sizeMap<String,Long>
getFailedCalls()
Method name -> # of callsMap<String,Integer>
getLastMinuteRequests()
Method name -> The number of the requests in the last minuteMap<String,Long>
getRateLimitedMethods()
Method name -> Epoch millis to retryMap<String,Long>
getSuccessfulCalls()
Method name -> # of callsMap<String,Long>
getUnsuccessfulCalls()
Method name -> # of callsint
hashCode()
String
toString()
-
Constructor Details
-
RequestStats
public RequestStats() -
RequestStats
-
-
Method Details
-
builder
-
getAllCompletedCalls
Method name -> # of calls -
getSuccessfulCalls
Method name -> # of calls -
getUnsuccessfulCalls
Method name -> # of calls -
getFailedCalls
Method name -> # of calls -
getCurrentQueueSize
Method name -> The queue size -
getLastMinuteRequests
Method name -> The number of the requests in the last minute -
getRateLimitedMethods
Method name -> Epoch millis to retry -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-