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: