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
Constructors Constructor Description MemoryMetricsDatastore(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getMetricsType()
AsyncRateLimitQueue
getRateLimitQueue(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, 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
-
-
-
-
Constructor Detail
-
MemoryMetricsDatastore
public MemoryMetricsDatastore(int numberOfNodes, ExecutorServiceProvider executorServiceProvider)
-
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 Detail
-
getMetricsType
protected String getMetricsType()
- Specified by:
getMetricsType
in classBaseMemoryMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-
getRateLimitQueue
public AsyncRateLimitQueue getRateLimitQueue(String executorName, String teamId)
- Specified by:
getRateLimitQueue
in classBaseMemoryMetricsDatastore<AsyncExecutionSupplier<? extends SlackApiResponse>,AsyncRateLimitQueue.Message>
-
-