Package com.slack.api.methods.metrics
Class MemoryMetricsDatastore
- java.lang.Object
-
- com.slack.api.rate_limits.metrics.impl.BaseMemoryMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-
- com.slack.api.methods.metrics.MemoryMetricsDatastore
-
- All Implemented Interfaces:
MetricsDatastore,AutoCloseable
public class MemoryMetricsDatastore extends BaseMemoryMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-
-
Field Summary
-
Fields inherited from interface com.slack.api.rate_limits.metrics.MetricsDatastore
DEFAULT_SINGLETON_EXECUTOR_NAME
-
-
Constructor Summary
Constructors Constructor Description MemoryMetricsDatastore(int numberOfNodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetMetricsType()AsyncRateLimitQueuegetRateLimitQueue(String executorName, String teamId)-
Methods inherited from class com.slack.api.rate_limits.metrics.impl.BaseMemoryMetricsDatastore
addToLastMinuteRequests, addToWaitingMessageIds, close, deleteFromWaitingMessageIds, getAllStats, getLastMinuteRequests, getNumberOfLastMinuteRequests, getNumberOfNodes, getRateLimitedMethodRetryEpochMillis, getStats, getThreadGroupName, incrementAllCompletedCalls, incrementFailedCalls, incrementSuccessfulCalls, incrementUnsuccessfulCalls, 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
getStats
-
-
-
-
Method Detail
-
getMetricsType
protected String getMetricsType()
- Specified by:
getMetricsTypein classBaseMemoryMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-
getRateLimitQueue
public AsyncRateLimitQueue getRateLimitQueue(String executorName, String teamId)
- Specified by:
getRateLimitQueuein classBaseMemoryMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-
-