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>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.slack.api.rate_limits.metrics.impl.BaseMemoryMetricsDatastore
BaseMemoryMetricsDatastore.MaintenanceJob -
Field Summary
Fields inherited from interface com.slack.api.rate_limits.metrics.MetricsDatastore
DEFAULT_SINGLETON_EXECUTOR_NAME -
Constructor Summary
ConstructorsConstructorDescriptionMemoryMetricsDatastore(int numberOfNodes) MemoryMetricsDatastore(int numberOfNodes, boolean statsEnabled) MemoryMetricsDatastore(int numberOfNodes, boolean statsEnabled, long backgroundJobIntervalMilliseconds) MemoryMetricsDatastore(int numberOfNodes, ExecutorServiceProvider executorServiceProvider) MemoryMetricsDatastore(int numberOfNodes, ExecutorServiceProvider executorServiceProvider, boolean statsEnabled, long backgroundJobIntervalMilliseconds) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetRateLimitQueue(String executorName, String teamId) Methods inherited from class com.slack.api.rate_limits.metrics.impl.BaseMemoryMetricsDatastore
addToLastMinuteRequests, addToWaitingMessageIds, close, deleteFromWaitingMessageIds, getAllStats, getExecutorServiceProvider, getLastMinuteRequests, getNumberOfLastMinuteRequests, getNumberOfNodes, getRateLimitedMethodRetryEpochMillis, getRateLimiterBackgroundJobIntervalMillis, getStats, getThreadGroupName, incrementAllCompletedCalls, incrementFailedCalls, incrementSuccessfulCalls, incrementUnsuccessfulCalls, initializeRateLimiterBackgroundJob, isClosed, isStatsEnabled, isTraceMode, setCurrentQueueSize, setExecutorServiceProvider, setNumberOfLastMinuteRequests, setRateLimitedMethodRetryEpochMillis, setRateLimiterBackgroundJobIntervalMillis, setStatsEnabled, setTraceMode, updateCurrentQueueSize, updateNumberOfLastMinuteRequestsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.slack.api.rate_limits.metrics.MetricsDatastore
getStats
-
Constructor Details
-
MemoryMetricsDatastore
-
MemoryMetricsDatastore
public MemoryMetricsDatastore(int numberOfNodes, boolean statsEnabled) -
MemoryMetricsDatastore
public MemoryMetricsDatastore(int numberOfNodes, boolean statsEnabled, long backgroundJobIntervalMilliseconds) -
MemoryMetricsDatastore
public MemoryMetricsDatastore(int numberOfNodes, ExecutorServiceProvider executorServiceProvider, boolean statsEnabled, long backgroundJobIntervalMilliseconds) -
MemoryMetricsDatastore
public MemoryMetricsDatastore(int numberOfNodes)
-
-
Method Details
-
getMetricsType
- Specified by:
getMetricsTypein classBaseMemoryMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-
getRateLimitQueue
- Specified by:
getRateLimitQueuein classBaseMemoryMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-