mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2025-10-14 22:10:27 +00:00
update 优化 有界队列销毁方式 应该使用特殊销毁方法
This commit is contained in:
@@ -179,7 +179,7 @@ public class QueueUtils {
|
||||
public static <T> boolean trySetBoundedQueueCapacity(String queueName, int capacity, boolean destroy) {
|
||||
RBoundedBlockingQueue<T> boundedBlockingQueue = CLIENT.getBoundedBlockingQueue(queueName);
|
||||
if (destroy) {
|
||||
destroyQueue(queueName);
|
||||
boundedBlockingQueue.delete();
|
||||
}
|
||||
return boundedBlockingQueue.trySetCapacity(capacity);
|
||||
}
|
||||
|
Reference in New Issue
Block a user