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

#include "rpc.h"

namespace NNeh {
    class IRequestQueue {
    public:
        virtual ~IRequestQueue() {
        }

        virtual void Clear() = 0;
        virtual void Schedule(IRequestRef req) = 0;
        virtual IRequestRef Next() = 0;
    };

    typedef TAutoPtr<IRequestQueue> IRequestQueueRef;
    IRequestQueueRef CreateRequestQueue();
}