Class ThreadingConfig
java.lang.Object
net.dv8tion.jda.internal.utils.config.ThreadingConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAudioPool
(Supplier<String> identifier) static ThreadingConfig
void
boolean
boolean
boolean
boolean
boolean
boolean
static ScheduledThreadPoolExecutor
newScheduler
(int coreSize, Supplier<String> identifier, String baseName) static ScheduledThreadPoolExecutor
newScheduler
(int coreSize, Supplier<String> identifier, String baseName, boolean daemon) void
setAudioPool
(ScheduledExecutorService executor, boolean shutdown) void
setCallbackPool
(ExecutorService executor, boolean shutdown) void
setEventPool
(ExecutorService executor, boolean shutdown) void
setGatewayPool
(ScheduledExecutorService executor, boolean shutdown) void
setRateLimitElastic
(ExecutorService executor, boolean shutdown) void
setRateLimitScheduler
(ScheduledExecutorService executor, boolean shutdown) void
shutdown()
void
void
-
Constructor Details
-
ThreadingConfig
public ThreadingConfig()
-
-
Method Details
-
setRateLimitScheduler
-
setRateLimitElastic
-
setGatewayPool
-
setCallbackPool
-
setEventPool
-
setAudioPool
-
init
-
shutdown
public void shutdown() -
shutdownRequester
public void shutdownRequester() -
shutdownNow
public void shutdownNow() -
getRateLimitScheduler
-
getRateLimitElastic
-
getGatewayPool
-
getCallbackPool
-
getEventPool
-
getAudioPool
-
isShutdownRateLimitScheduler
public boolean isShutdownRateLimitScheduler() -
isShutdownRateLimitElastic
public boolean isShutdownRateLimitElastic() -
isShutdownGatewayPool
public boolean isShutdownGatewayPool() -
isShutdownCallbackPool
public boolean isShutdownCallbackPool() -
isShutdownEventPool
public boolean isShutdownEventPool() -
isShutdownAudioPool
public boolean isShutdownAudioPool() -
newScheduler
@Nonnull public static ScheduledThreadPoolExecutor newScheduler(int coreSize, Supplier<String> identifier, String baseName) -
newScheduler
@Nonnull public static ScheduledThreadPoolExecutor newScheduler(int coreSize, Supplier<String> identifier, String baseName, boolean daemon) -
getDefault
-