From b0e78bf1cc652268e653b675988146e7bcb396c2 Mon Sep 17 00:00:00 2001 From: chengxiangwang Date: Sun, 5 May 2019 22:08:41 +0800 Subject: [PATCH] add MqttRuntimeException.java;change dledger version to 0.2-SNAPSHOT --- common/pom.xml | 1 + .../mqtt/exception/MqttRuntimeException.java | 25 +++++++++++++++++++ .../dispatcher/EncodeDecodeDispatcher.java | 2 +- store/pom.xml | 2 +- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 mqtt/src/main/java/org/apache/rocketmq/mqtt/exception/MqttRuntimeException.java diff --git a/common/pom.xml b/common/pom.xml index f3fad163..684b4135 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -54,4 +54,5 @@ snakeyaml + diff --git a/mqtt/src/main/java/org/apache/rocketmq/mqtt/exception/MqttRuntimeException.java b/mqtt/src/main/java/org/apache/rocketmq/mqtt/exception/MqttRuntimeException.java new file mode 100644 index 00000000..17b9b359 --- /dev/null +++ b/mqtt/src/main/java/org/apache/rocketmq/mqtt/exception/MqttRuntimeException.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.rocketmq.mqtt.exception; + +public class MqttRuntimeException extends RuntimeException { + + public MqttRuntimeException(String message) { + super(message); + } +} diff --git a/remoting/src/main/java/org/apache/rocketmq/remoting/transport/mqtt/dispatcher/EncodeDecodeDispatcher.java b/remoting/src/main/java/org/apache/rocketmq/remoting/transport/mqtt/dispatcher/EncodeDecodeDispatcher.java index 3415e3a2..33313abe 100644 --- a/remoting/src/main/java/org/apache/rocketmq/remoting/transport/mqtt/dispatcher/EncodeDecodeDispatcher.java +++ b/remoting/src/main/java/org/apache/rocketmq/remoting/transport/mqtt/dispatcher/EncodeDecodeDispatcher.java @@ -38,7 +38,7 @@ public class EncodeDecodeDispatcher { encodeDecodeDispatcher.put(MqttMessageType.SUBACK, new MqttSubackEncodeDecode()); encodeDecodeDispatcher.put(MqttMessageType.UNSUBSCRIBE, new MqttUnSubscribeEncodeDecode()); encodeDecodeDispatcher.put(MqttMessageType.UNSUBACK, new MqttUnSubackEncodeDecode()); - encodeDecodeDispatcher.put(MqttMessageType.PINGREQ, new MqttPingReqEncodeDecode() ); + encodeDecodeDispatcher.put(MqttMessageType.PINGREQ, new MqttPingReqEncodeDecode()); encodeDecodeDispatcher.put(MqttMessageType.PINGRESP, new MqttPingRespEncodeDecode()); } diff --git a/store/pom.xml b/store/pom.xml index 13e3b7d5..d90e7fbd 100644 --- a/store/pom.xml +++ b/store/pom.xml @@ -31,7 +31,7 @@ io.openmessaging.storage dledger - 0.1-SNAPSHOT + 0.2-SNAPSHOT org.apache.rocketmq -- GitLab