阿里云ons消息队列使用小记

2018/5/20 posted in  消息队列

java反序列化阿里云上的消息文件

        String serializeFile = "/Users/suxiaolin/filerun/user-files/superuser/0A2A003B0ADA439F5B3D171876FA0042";


        File file = new File(serializeFile);
        byte bt[] = new byte[(int)file.length()];
        FileInputStream fis = new FileInputStream(file);
        fis.read(bt);
        fis.close();

        MessageEvent messageEvent = (MessageEvent) SerializationUtils.deserialize(bt);
        System.out.println(JsonUtils.obj2json(messageEvent.getDomain()));

默认的消息重试次数

https://help.aliyun.com/document_detail/43490.html

image-20180905172235987