GearmanMethods.php 3.2 KB

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