activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 王晓 <xiaow.w...@shunwang.com>
Subject How to simulate slow consumer?
Date Tue, 29 May 2018 06:32:48 GMT
hi:
i want to simulate slow consumer , code below  can’t achieve results , please give me
a hand. :)


@Override

    public void handleMessage(String disburseNo) {
        logger.debug("开始处理流程:" + disburseNo);
//        disburseInterfaceBo.disburse(disburseNo);
        try {
            HttpClientUtils.doGet("google.com<http://google.com>",null);
            Thread.sleep(60000);
        } catch (Exception e) {
            logger.error("===异常",e);
        }
        logger.debug("流程处理结束:" + disburseNo);
    }

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message