public class AsyncRateLimitQueue extends Object
| Modifier and Type | Method and Description |
|---|---|
<T extends SlackApiResponse> |
dequeueIfReady(String messageId,
String teamId,
String methodName,
Map<String,String> params) |
<T extends SlackApiResponse> |
enqueue(String messageId,
String teamId,
String methodName,
Map<String,String> params,
AsyncExecutionSupplier<T> methodsSupplier) |
static AsyncRateLimitQueue |
get(String executorName,
String teamId) |
Integer |
getCurrentActiveQueueSize(String methodNameWithSuffix) |
static AsyncRateLimitQueue |
getOrCreate(MethodsConfig config,
String teamId) |
AsyncMethodsRateLimiter |
getRateLimiter() |
void |
remove(String methodName,
String messageId) |
void |
setRateLimiter(AsyncMethodsRateLimiter rateLimiter) |
public AsyncMethodsRateLimiter getRateLimiter()
public void setRateLimiter(AsyncMethodsRateLimiter rateLimiter)
public static AsyncRateLimitQueue get(String executorName, String teamId)
public static AsyncRateLimitQueue getOrCreate(MethodsConfig config, String teamId)
public <T extends SlackApiResponse> void enqueue(String messageId, String teamId, String methodName, Map<String,String> params, AsyncExecutionSupplier<T> methodsSupplier) throws InterruptedException
InterruptedExceptionpublic <T extends SlackApiResponse> AsyncExecutionSupplier<T> dequeueIfReady(String messageId, String teamId, String methodName, Map<String,String> params)
Copyright © 2020. All rights reserved.