forked from mmoreram/GearmanBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Work.php
84 lines (73 loc) · 1.54 KB
/
Work.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
<?php
/**
* Gearman Bundle for Symfony2
*
* 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 Mmoreram\GearmanBundle\Driver\Gearman;
use Doctrine\Common\Annotations\Annotation;
/**
* Gearman Work annotation driver
*
* @since 2.3.1
*
* @Annotation
*/
class Work extends Annotation
{
/**
* Name of worker
*
* @var integer
*/
public $name;
/**
* Description of Worker
*
* @var string
*/
public $description;
/**
* Number of iterations specified for all jobs inside Work
*
* @var integer
*/
public $iterations;
/**
* Servers assigned for all jobs of this work to be executed
*
* @var mixed
*/
public $servers;
/**
* Default method to call for all jobs inside this work
*
* @var string
*/
public $defaultMethod;
/**
* Default timeout in seconds for worker idle time
*
* @var int
*/
public $timeout;
/**
* @var int
*
* Default number of seconds the execution must run before being allowed to terminate
*/
public $minimumExecutionTime;
/**
* Service typeof Class. If it's defined, object will be instanced throught
* service dependence injection.
* Otherwise, class will be instance with new() method
*
* @var string
*/
public $service = null;
}