Interface ThreadPoolProvider<T extends ExecutorService>

    • Method Detail

      • provide

        @Nullable
        T provide​(int shardId)
        Provides an instance of the specified executor, or null
        Parameters:
        shardId - The current shard id
        Returns:
        The Executor Service
      • shouldShutdownAutomatically

        default boolean shouldShutdownAutomatically​(int shardId)
        Whether the previously provided executor should be shutdown by JDA.shutdown().
        Parameters:
        shardId - The current shard id
        Returns:
        True, if the executor should be shutdown by JDA