Class RequestStats
java.lang.Object
com.slack.api.rate_limits.metrics.RequestStats
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRequestStats(Long lastRequestTimestampMillis, 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) Creates a newRequestStatsinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanMethod name -> # of callsMethod name -> The queue sizeMethod name -> # of callsMethod name -> The number of the requests in the last minuteThe last request timestamp in millisecondsMethod name -> Epoch millis to retryMethod name -> # of callsMethod name -> # of callsinthashCode()voidsetLastRequestTimestampMillis(Long lastRequestTimestampMillis) The last request timestamp in millisecondstoString()
-
Constructor Details
-
RequestStats
public RequestStats() -
RequestStats
public RequestStats(Long lastRequestTimestampMillis, 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) Creates a newRequestStatsinstance.- Parameters:
lastRequestTimestampMillis- The last request timestamp in millisecondsallCompletedCalls- Method name -> # of callssuccessfulCalls- Method name -> # of callsunsuccessfulCalls- Method name -> # of callsfailedCalls- Method name -> # of callscurrentQueueSize- Method name -> The queue sizelastMinuteRequests- Method name -> The number of the requests in the last minuterateLimitedMethods- Method name -> Epoch millis to retry
-
-
Method Details
-
builder
-
getLastRequestTimestampMillis
The last request timestamp in milliseconds -
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 -
setLastRequestTimestampMillis
The last request timestamp in milliseconds -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-