Channel->stats
获取通道的状态。函数原型:
function
Channel
->
stats() :
array
;
返回一个数组,包括2项信息
queue_num 通道中的元素数量
queue_bytes 通道当前占用的内存字节数
array
(
"
queue_num
"
=>
10
,
"
queue_bytes
"
=>
161
,
);