3
* Gavriloaie Eugen-Andrei (shiretu@gmail.com)
5
* This file is part of crtmpserver.
6
* crtmpserver is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
11
* crtmpserver is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with crtmpserver. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef _JOBSTIMERPROTOCOL_H
21
#define _JOBSTIMERPROTOCOL_H
23
#include "protocols/timer/basetimerprotocol.h"
25
namespace app_proxypublish {
27
class JobsTimerProtocol
28
: public BaseTimerProtocol {
30
vector<Variant> _pushQueue;
31
vector<Variant> _pullQueue;
34
virtual ~JobsTimerProtocol();
36
virtual bool TimePeriodElapsed();
38
void EnqueuePush(Variant &push);
39
void EnqueuePull(Variant &pull);
48
#endif /* _JOBSTIMERPROTOCOL_H */