MessageData 对象,用来定义消息
This commit is contained in:
parent
808cd1e9da
commit
8c733b0f26
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue