mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-07 03:19:55 +08:00
限定本地队列容量上限
This commit is contained in:
@@ -39,7 +39,7 @@ public final class DefaultInMemoryStorage implements InMemoryStorage {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean put(String topic, QueueMsg msg) {
|
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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user