blob: 78004f3d7875ac7084768b29363c2f3bc639d606 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <atomic>
namespace storage::api { class StorageMessage; }
namespace feedbm {
class StorageReplyErrorChecker {
std::atomic<uint32_t> _errors;
public:
StorageReplyErrorChecker();
~StorageReplyErrorChecker();
void check_error(const storage::api::StorageMessage &msg);
uint32_t get_error_count() const { return _errors; }
};
}
|