MessageData 对象,用来定义消息

This commit is contained in:
YuCheng Hu 2019-08-07 10:25:47 -04:00
parent 808cd1e9da
commit 8c733b0f26
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package com.insight.demo.msgpack.model;
import org.msgpack.annotation.Message;
@Message
public class MessageData {
public boolean compact;
public int schema;
public boolean isCompact() {
return compact;
}
public void setCompact(boolean compact) {
this.compact = compact;
}
public int getSchema() {
return schema;
}
public void setSchema(int schema) {
this.schema = schema;
}
}