当前位置: 首页 > news >正文

wordpress商城必备软件重庆seo优化推广

wordpress商城必备软件,重庆seo优化推广,extjs网站开发,网站制作公司 沈阳RabbitMq不支持修改已经存在的队列和交换机参数#xff0c;可以通过创建失败#xff0c;捕获异常信息#xff0c;然后删除原队列或交换机#xff0c;然后重新创建#xff0c;以达到修改参数的功能。package com.sky.study.delete;import java.io.IOException;import java.…RabbitMq不支持修改已经存在的队列和交换机参数可以通过创建失败捕获异常信息然后删除原队列或交换机然后重新创建以达到修改参数的功能。package com.sky.study.delete;import java.io.IOException;import java.util.concurrent.TimeoutException;import com.rabbitmq.client.AMQP;import com.rabbitmq.client.AMQP.Queue.DeclareOk;import com.rabbitmq.client.Channel;import com.rabbitmq.client.Connection;import com.sky.study.ConnectionUtil;public class DynamicDelete {private final static String queueNameceshi_queue;public static void main(String[] args) throws Exception {Connection connection ConnectionUtil.getConnection();Channel channel connection.createChannel();DeclareOk ss declearQueue(channel,queueName);System.out.println(ss);channel.close();connection.close();}public static DeclareOk declearQueue(Channel channel, String queueName) throws Exception {Connection connection1 ConnectionUtil.getConnection();Channel channel1 connection1.createChannel();try {channel1.queueDeclare(queueName,true, false, false, null);} catch (IOException e) {try {channel1.close();} catch (Exception ex) {}try {connection1.close();} catch (Exception ex) {}connection1 ConnectionUtil.getConnection();channel1 connection1.createChannel();channel1.queueDelete(queueName);try {channel1.close();} catch (Exception ex) {}try {connection1.close();} catch (Exception ex) {}} finally {try {channel1.close();} catch (Exception ex) {}try {connection1.close();} catch (Exception ex) {}}DeclareOk declareOk channel.queueDeclare(queueName, true, false, false, null);return declareOk;}public static AMQP.Exchange.DeclareOk declearExchange(Channel channel, String exchangeName, String exchangeMode) throws IOException, TimeoutException {//exchangeDeclare 交换机名字类型是否持久化不使用时是否自动删除是否是内部的(不能被客户端使用)其他参数Connection connection1 ConnectionUtil.getConnection();Channel channel1 connection1.createChannel();AMQP.Exchange.DeclareOk declareOk;try {channel1.exchangeDeclare(exchangeName, exchangeMode, true, false, false, null);} catch (IOException e) {try {channel1.close();} catch (Exception ex) {}try {connection1.close();} catch (Exception ex) {}connection1 ConnectionUtil.getConnection();channel1 connection1.createChannel();channel1.exchangeDelete(exchangeName);try {channel1.close();} catch (Exception ex) {}try {connection1.close();} catch (Exception ex) {}} finally {try {channel1.close();} catch (Exception ex) {}try {connection1.close();} catch (Exception ex) {}}declareOk channel.exchangeDeclare(exchangeName, exchangeMode,true, false, false, null);return declareOk;}}
http://www.pierceye.com/news/777173/

相关文章:

  • 北京网站建设公司怎么样怎么做qq盗号网站
  • 中企动力网站建设合同中天建设招标网站
  • 湖南手机版建站系统开发wordpress获取用户角色
  • 南皮网站建设价格泰安房产信息网官网首页
  • 网页制作与网站建设实战大全重庆房产信息网官网
  • 上海的网站建设公司app对接网站登录要怎么做
  • 江苏省备案网站现在什么网站做外贸的最好
  • 如何知道网站是否被k蓝山网站建设
  • 网站维护服务公司免费的网站推广渠道
  • 网站建设方案应该怎么写asp网站无法上传图片
  • 建个网站多少钱app企业关键词排名优化公司
  • 电子商务他们的代表网站代码网站怎么做的
  • 如何做网站卖东西长春互联网公司排名
  • 怎样拥有自己的网站制作网站的步骤和方法
  • 北京电子商务app网站建设大兴小程序源码如何部署到服务器
  • 设计找图网站网站用什么构建
  • 做微信的网站叫什么软件湛江网站建设制作维护
  • 做网站商城多少钱wordpress链接公众号
  • 数码产品销售网站建设策划书金融类网站模板
  • 档案网站建设视频网络软营销的案例
  • 德州市建设局质监站网站织梦做的网站打包在dw修改
  • 做那个男女的视频网站湖南响应式网站公司
  • 1个ip可以做几个网站电商网站建设阿里云
  • 网站做seo需要些什么wordpress虎嗅破解版
  • 网站开发按钮图片素材巩义自助建站优化
  • 石家庄网站建设接单常见的网络直接营销有哪些
  • 上海网站建设技术托管找合伙人做网站
  • 网站和自媒体都可以做东莞专业营销网站建设推广
  • 毕业设计网站怎么做校园网二手书交易网站建设
  • 网站运营托管协议凡科建设网站还用买服务器吗