sync_page_cache_file_creator.h 560 B

123456789101112131415161718
  1. #pragma once
  2. #include "file_creator.h"
  3. class TSyncPageCacheFileLogBackendCreator : public TFileLogBackendCreator {
  4. public:
  5. TSyncPageCacheFileLogBackendCreator();
  6. virtual bool Init(const IInitContext& ctx) override;
  7. static TFactory::TRegistrator<TSyncPageCacheFileLogBackendCreator> Registrar;
  8. protected:
  9. virtual void DoToJson(NJson::TJsonValue& value) const override;
  10. private:
  11. virtual THolder<TLogBackend> DoCreateLogBackend() const override;
  12. size_t MaxBufferSize = Max<size_t>();
  13. size_t MaxPendingCacheSize = Max<size_t>();
  14. };