mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 01:49:58 +08:00
限定本地队列容量上限
This commit is contained in:
@@ -39,7 +39,7 @@ public final class DefaultInMemoryStorage implements InMemoryStorage {
|
||||
|
||||
@Override
|
||||
public boolean put(String topic, QueueMsg msg) {
|
||||
return storage.computeIfAbsent(topic, (t) -> new LinkedBlockingQueue<>()).add(msg);
|
||||
return storage.computeIfAbsent(topic, t -> new LinkedBlockingQueue<>(100000)).add(msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user