33 lines
455 B
PHP
33 lines
455 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
|
||
|
|
namespace Queue\Abstracts;
|
||
|
|
|
||
|
|
|
||
|
|
use Queue\Consumer;
|
||
|
|
|
||
|
|
interface Relyon
|
||
|
|
{
|
||
|
|
|
||
|
|
// /**
|
||
|
|
// * @param string $key
|
||
|
|
// * @param Consumer $consumer
|
||
|
|
// * @param int $score
|
||
|
|
// * @return mixed
|
||
|
|
// *
|
||
|
|
// * 追加
|
||
|
|
// */
|
||
|
|
// public function push(string $key, Consumer $consumer, $score = 0);
|
||
|
|
//
|
||
|
|
//
|
||
|
|
// /**
|
||
|
|
// * @param string $key
|
||
|
|
// * @param Consumer $consumer
|
||
|
|
// * @return mixed
|
||
|
|
// * 消费
|
||
|
|
// */
|
||
|
|
// public function pop(string $key, Consumer $consumer);
|
||
|
|
//
|
||
|
|
|
||
|
|
}
|