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