#pragma once

#include <saas/library/searchserver/replier.h>

struct TSearchServerMetrics;

namespace NRTYServer {
    class TCommonReplierFeatures {
        const TString ErrorTimeout = "request timeout";
        const TString ErrorQueueFailure = "cannot queue request";

    protected:
        void OnRequestExpired(IReplyContext::TPtr context, TSearchServerMetrics* metrics);
        void OnQueueFailure(IReplyContext::TPtr context, TSearchServerMetrics* metrics);
    };
}
