git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to simulate slow consumer?


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);
    }