You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 line
544 B

  1. <?php
  2. /**
  3. * MQ队列接口
  4. *
  5. * - 单个添加,批量弹出
  6. *
  7. * @author dogstar <chanzonghuang@gmail.com> 20150516
  8. */
  9. interface Task_MQ {
  10. /**
  11. * 单个添加
  12. * @param string $service 接口服务名称,如:Default.Index
  13. * @param array $params 接口服务参数
  14. */
  15. public function add($service, $params = array());
  16. /**
  17. * 批量弹出
  18. * @param string $service 需要获取的接口服务名称
  19. * @param int $num 弹出的个数
  20. */
  21. public function pop($service, $num = 1);
  22. }