Demo
1
2
3
4
|
$builder = new AmqpBuilder(); $builder->setDelayedQueue( 'order_exchange' , 1, 'delay_exchange' , 'delay_route' ); $que = ApplicationContext::getContainer()-> get (DelayProducer:: class ); var_dump($que->produce( new OrderQueueProducer([ 'order_sn' => ( string )mt_rand(10000, 90000)]), $builder)) |
更多学习内容请访问:
腾讯T3-T4标准精品PHP架构师教程目录大全,只要你看完保证薪资上升一个台阶(持续更新)