mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 09:59:55 +08:00
放开memory队列指标打印
This commit is contained in:
@@ -20,13 +20,11 @@ public final class DefaultInMemoryStorage implements InMemoryStorage {
|
||||
|
||||
@Override
|
||||
public void printStats() {
|
||||
if (log.isDebugEnabled()) {
|
||||
storage.forEach((topic, queue) -> {
|
||||
if (!queue.isEmpty()) {
|
||||
log.debug("[{}] Queue Size [{}]", topic, queue.size());
|
||||
}
|
||||
});
|
||||
}
|
||||
storage.forEach((topic, queue) -> {
|
||||
if (!queue.isEmpty()) {
|
||||
log.info("[{}] Queue Size [{}]", topic, queue.size());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -45,7 +43,7 @@ public final class DefaultInMemoryStorage implements InMemoryStorage {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<QueueMsg> get(String topic) throws InterruptedException {
|
||||
public List<QueueMsg> get(String topic) throws InterruptedException {
|
||||
final BlockingQueue<QueueMsg> queue = storage.get(topic);
|
||||
if (queue != null) {
|
||||
final QueueMsg firstMsg = queue.poll();
|
||||
|
||||
Reference in New Issue
Block a user