T
- The type of executorpublic interface ThreadPoolProvider<T extends java.util.concurrent.ExecutorService>
DefaultShardManager
when building a JDA instance.
provide(int)
followed by
a call to shouldShutdownAutomatically(int)
.Modifier and Type | Method | Description |
---|---|---|
T |
provide(int shardId) |
Provides an instance of the specified executor, or null
|
default boolean |
shouldShutdownAutomatically(int shardId) |
Whether the previously provided executor should be shutdown by
JDA.shutdown() . |
T provide(int shardId)
shardId
- The current shard iddefault boolean shouldShutdownAutomatically(int shardId)
JDA.shutdown()
.shardId
- The current shard id