-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: fastjson --> 1.2.49 & 序列化反序列化全部改为fastjson来实现
- Loading branch information
Showing
10 changed files
with
100 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
mqtt-zoo/mqtt-test-kafka/src/main/java/cn/wizzer/iot/mqtt/server/test/InternalMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package cn.wizzer.iot.mqtt.server.test; | ||
|
||
import java.io.Serializable; | ||
/** | ||
* 内部消息 | ||
*/ | ||
public class InternalMessage implements Serializable { | ||
|
||
private static final long serialVersionUID = -1L; | ||
|
||
//当前频道clientId | ||
private String clientId; | ||
|
||
private String topic; | ||
|
||
private int mqttQoS; | ||
|
||
private byte[] messageBytes; | ||
|
||
private boolean retain; | ||
|
||
private boolean dup; | ||
|
||
public String getClientId() { | ||
return clientId; | ||
} | ||
|
||
public InternalMessage setClientId(String clientId) { | ||
this.clientId = clientId; | ||
return this; | ||
} | ||
|
||
public String getTopic() { | ||
return topic; | ||
} | ||
|
||
public InternalMessage setTopic(String topic) { | ||
this.topic = topic; | ||
return this; | ||
} | ||
|
||
public int getMqttQoS() { | ||
return mqttQoS; | ||
} | ||
|
||
public InternalMessage setMqttQoS(int mqttQoS) { | ||
this.mqttQoS = mqttQoS; | ||
return this; | ||
} | ||
|
||
public byte[] getMessageBytes() { | ||
return messageBytes; | ||
} | ||
|
||
public InternalMessage setMessageBytes(byte[] messageBytes) { | ||
this.messageBytes = messageBytes; | ||
return this; | ||
} | ||
|
||
public boolean isRetain() { | ||
return retain; | ||
} | ||
|
||
public InternalMessage setRetain(boolean retain) { | ||
this.retain = retain; | ||
return this; | ||
} | ||
|
||
public boolean isDup() { | ||
return dup; | ||
} | ||
|
||
public InternalMessage setDup(boolean dup) { | ||
this.dup = dup; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters