Package com.aliyun.openservices.ons.api.order

Examples of com.aliyun.openservices.ons.api.order.OrderConsumer.subscribe()


    public static void main(String[] args) {
        Properties properties = new Properties();
        properties.put(PropertyKeyConst.ConsumerId, "ConsumerId1");
        OrderConsumer consumer = ONSFactory.createOrderedConsumer(properties);

        consumer.subscribe("TopicTestONS", "*", new MessageOrderListener() {

            @Override
            public OrderAction consume(Message message, ConsumeOrderContext context) {
                System.out.println(message);
                return OrderAction.ConsumeSuccessfully;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.