Skip to content
Success

Changes

Summary

  1. Configuration for mainWs sending pools (#776) (commit: 5b50c18) (details)
Commit 5b50c18ecbf29cf9f4e2ce1ce06dec028c1f0ccd by noreply
Configuration for mainWs sending pools (#776)
This allows to share threads between shards for main ws sending queue
workers. Since these threads spend most of their time sleeping it makes
sense to allow sharing resources between shards.

* Improve ThreadFactory name consistency
* Make use of queue lock for all parts of the send system
* Switch to ScheduledExecutorService for rate-limit pool
* Use life cycle pool to close audio connections
* Remove unnecessary thread group
(commit: 5b50c18)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/managers/impl/AudioManagerImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/bot/sharding/DefaultShardManagerBuilder.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/impl/JDAImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/audio/AudioWebSocket.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/bot/sharding/DefaultShardManager.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/audio/factory/DefaultSendSystem.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/core/requests/WebSocketSendingThread.java
The file was modifiedREADME.md (diff)
The file was removedsrc/main/java/net/dv8tion/jda/core/audio/KeepAliveThreadFactory.java
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/WebSocketClient.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/core/utils/concurrent/CountingThreadFactory.java
The file was modifiedsrc/main/java/net/dv8tion/jda/core/audio/AudioConnection.java (diff)
The file was modifiedbuild.gradle (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/JDABuilder.java (diff)