Package com.alibaba.ons.api.order

Examples of com.alibaba.ons.api.order.MessageOrderListener.consume()


            if (null == listener) {
                throw new ONSClientException("MessageOrderListener is null");
            }

            final ConsumeOrderContext context = new ConsumeOrderContext();
            OrderAction action = listener.consume(msg, context);
            if (action != null) {
                switch (action) {
                case ConsumeSuccessfully:
                    return ConsumeOrderlyStatus.SUCCESS;
                case SuspendMoment:
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.