sync_page_cache_file.h 450 B

12345678910111213141516171819
  1. #pragma once
  2. #include "backend.h"
  3. #include <util/generic/fwd.h>
  4. #include <util/generic/ptr.h>
  5. class TSyncPageCacheFileLogBackend final: public TLogBackend {
  6. public:
  7. TSyncPageCacheFileLogBackend(const TString& path, size_t maxBufferSize, size_t maxPendingCacheSize);
  8. ~TSyncPageCacheFileLogBackend();
  9. void WriteData(const TLogRecord& rec) override;
  10. void ReopenLog() override;
  11. private:
  12. class TImpl;
  13. THolder<TImpl> Impl_;
  14. };