in ons-core/ons-api/src/main/java/org/apache/rocketmq/ons/api/bean/OrderConsumerBean.java [47:63]
public void start() {
if (null == this.properties) {
throw new ONSClientException("properties not set");
}
if (null == this.subscriptionTable) {
throw new ONSClientException("subscriptionTable not set");
}
this.orderConsumer = ONSFactory.createOrderedConsumer(this.properties);
for (final Map.Entry<Subscription, MessageOrderListener> next : this.subscriptionTable.entrySet()) {
this.subscribe(next.getKey().getTopic(), next.getKey().getExpression(), next.getValue());
}
this.orderConsumer.start();
}