Search in sources :

Example 1 with OMSRuntimeException

use of io.openmessaging.exception.OMSRuntimeException in project rocketmq by apache.

the class PullConsumerImpl method startup.

@Override
public synchronized void startup() {
    if (!started) {
        try {
            registerPullTaskCallback();
            this.pullConsumerScheduleService.start();
            this.localMessageCache.startup();
        } catch (MQClientException e) {
            throw new OMSRuntimeException("-1", e);
        }
    }
    this.started = true;
}
Also used : OMSRuntimeException(io.openmessaging.exception.OMSRuntimeException) MQClientException(org.apache.rocketmq.client.exception.MQClientException)

Example 2 with OMSRuntimeException

use of io.openmessaging.exception.OMSRuntimeException in project rocketmq-rocketmq-all-4.1.0-incubating by lirenzuo.

the class PullConsumerImpl method startup.

@Override
public synchronized void startup() {
    if (!started) {
        try {
            registerPullTaskCallback();
            this.pullConsumerScheduleService.start();
            this.localMessageCache.startup();
        } catch (MQClientException e) {
            throw new OMSRuntimeException("-1", e);
        }
    }
    this.started = true;
}
Also used : OMSRuntimeException(io.openmessaging.exception.OMSRuntimeException) MQClientException(org.apache.rocketmq.client.exception.MQClientException)

Aggregations

OMSRuntimeException (io.openmessaging.exception.OMSRuntimeException)2 MQClientException (org.apache.rocketmq.client.exception.MQClientException)2