// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include namespace storage::api { class StorageMessage; } namespace search::bmcluster { /* * Class tracking errors in storage replies. */ class StorageReplyErrorChecker { protected: std::atomic _errors; public: StorageReplyErrorChecker(); ~StorageReplyErrorChecker(); void check_error(const storage::api::StorageMessage &msg); uint32_t get_error_count() const { return _errors; } }; }