rabbitmq-queueDeclarePassive

DeclareOk a = channel.queueDeclarePassive(q);

申明队列时,如果q在broker不存在,则会报错:

reply-code=404,reply-text=NOT_FOUND

 

如果存在则会返回ok

你可能感兴趣的:(rabbitmq-queueDeclarePassive)