forked from mmoreram/GearmanBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GearmanMethods.php
144 lines (128 loc) · 3.19 KB
/
GearmanMethods.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
/**
* Gearman Bundle for Symfony2 / Symfony3
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <[email protected]>
*/
namespace Mkk\GearmanBundle;
/**
* Gearman available methods
*/
class GearmanMethods
{
/**
* Gearman method do
*
* The GearmanClient::do() method is deprecated as of pecl/gearman 1.0.0.
* Use GearmanClient::doNormal().
*
* @see http://www.php.net/manual/en/gearmanclient.do.php
*
* @var string
*/
const GEARMAN_METHOD_DO = 'do';
/**
* Gearman method doNormal
*
* @see http://www.php.net/manual/en/gearmanclient.donormal.php
*
* @var string
*/
const GEARMAN_METHOD_DONORMAL = 'doNormal';
/**
* Gearman method doLow
*
* @see http://www.php.net/manual/en/gearmanclient.dolow.php
*
* @var string
*/
const GEARMAN_METHOD_DOLOW = 'doLow';
/**
* Gearman method doHigh
*
* @see http://www.php.net/manual/en/gearmanclient.dohigh.php
*
* @var string
*/
const GEARMAN_METHOD_DOHIGH = 'doHigh';
/**
* Gearman method doBackground
*
* @see http://php.net/manual/en/gearmanclient.dobackground.php
*
* @var string
*/
const GEARMAN_METHOD_DOBACKGROUND = 'doBackground';
/**
* Gearman method doLowBackgound
*
* @see http://php.net/manual/en/gearmanclient.dolowbackground.php
*
* @var string
*/
const GEARMAN_METHOD_DOLOWBACKGROUND = 'doLowBackground';
/**
* Gearman method doHighBackground
*
* @see http://php.net/manual/en/gearmanclient.dohighbackground.php
*
* @var string
*/
const GEARMAN_METHOD_DOHIGHBACKGROUND = 'doHighBackground';
/**
* Tasks methods
*/
/**
* Gearman method addTask
*
* @see http://www.php.net/manual/en/gearmanclient.addtask.php
*
* @var string
*/
const GEARMAN_METHOD_ADDTASK = 'addTask';
/**
* Gearman method addTaskLow
*
* @see http://www.php.net/manual/en/gearmanclient.addtasklow.php
*
* @var string
*/
const GEARMAN_METHOD_ADDTASKLOW = 'addTaskLow';
/**
* Gearman method addTaskHigh
*
* @see http://www.php.net/manual/en/gearmanclient.addtaskhigh.php
*
* @var string
*/
const GEARMAN_METHOD_ADDTASKHIGH = 'addTaskHigh';
/**
* Gearman method addTaskBackground
*
* @see http://www.php.net/manual/en/gearmanclient.addtaskbackground.php
*
* @var string
*/
const GEARMAN_METHOD_ADDTASKBACKGROUND = 'addTaskBackground';
/**
* Gearman method addTaskLowBackground
*
* @see http://www.php.net/manual/en/gearmanclient.addtasklowbackground.php
*
* @var string
*/
const GEARMAN_METHOD_ADDTASKLOWBACKGROUND = 'addTaskLowBackground';
/**
* Gearman method addTaskHighBackground
*
* @see http://www.php.net/manual/en/gearmanclient.addtaskhighbackground.php
*
* @var string
*/
const GEARMAN_METHOD_ADDTASKHIGHBACKGROUND = 'addTaskHighBackground';
}