aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/sync_page_cache_file_creator.h
blob: 7148150222bb85e4c44fe6fc13c109b4ac7ae474 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "file_creator.h"

class TSyncPageCacheFileLogBackendCreator : public TFileLogBackendCreator {
public:
    TSyncPageCacheFileLogBackendCreator();
    virtual bool Init(const IInitContext& ctx) override;
    static TFactory::TRegistrator<TSyncPageCacheFileLogBackendCreator> Registrar;

protected:
    virtual void DoToJson(NJson::TJsonValue& value) const override;

private:
    virtual THolder<TLogBackend> DoCreateLogBackend() const override;
    size_t MaxBufferSize = Max<size_t>();
    size_t MaxPendingCacheSize = Max<size_t>();
};