GearmanMethods.php 3.0 KB

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