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

Examples of com.aliyun.openservices.ons.api.order.ConsumeOrderContext


            MessageOrderListener listener = OrderConsumerImpl.this.subscribeTable.get(msg.getTopic());
            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;
View Full Code Here


            MessageOrderListener listener = OrderConsumerImpl.this.subscribeTable.get(msg.getTopic());
            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;
View Full Code Here

TOP

Related Classes of com.aliyun.openservices.ons.api.order.ConsumeOrderContext

Copyright © 2018 www.massapicom. 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.