Package com.slack.api.methods.metrics
Class RedisMetricsDatastore
java.lang.Object
com.slack.api.rate_limits.metrics.impl.BaseRedisMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
com.slack.api.methods.metrics.RedisMetricsDatastore
- All Implemented Interfaces:
MetricsDatastore
,AutoCloseable
public class RedisMetricsDatastore extends BaseRedisMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.slack.api.rate_limits.metrics.impl.BaseRedisMetricsDatastore
BaseRedisMetricsDatastore.MaintenanceJob
-
Field Summary
Fields inherited from interface com.slack.api.rate_limits.metrics.MetricsDatastore
DEFAULT_SINGLETON_EXECUTOR_NAME
-
Constructor Summary
Constructors Constructor Description RedisMetricsDatastore(String appName, redis.clients.jedis.JedisPool jedisPool)
-
Method Summary
Modifier and Type Method Description RateLimitQueue<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
getRateLimitQueue(String executorName, String teamId)
Methods inherited from class com.slack.api.rate_limits.metrics.impl.BaseRedisMetricsDatastore
addToLastMinuteRequests, addToWaitingMessageIds, close, deleteFromWaitingMessageIds, getAllStats, getLastMinuteRequests, getNumberOfLastMinuteRequests, getRateLimitedMethodRetryEpochMillis, getStats, getThreadGroupName, incrementAllCompletedCalls, incrementFailedCalls, incrementSuccessfulCalls, incrementUnsuccessfulCalls, jedis, setCurrentQueueSize, setNumberOfLastMinuteRequests, setRateLimitedMethodRetryEpochMillis, updateCurrentQueueSize, updateNumberOfLastMinuteRequests
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.slack.api.rate_limits.metrics.MetricsDatastore
getNumberOfNodes, getStats
-
Constructor Details
-
Method Details
-
getRateLimitQueue
public RateLimitQueue<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message> getRateLimitQueue(String executorName, String teamId)- Specified by:
getRateLimitQueue
in classBaseRedisMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-