设为首页 加入收藏

TOP

Netty5 序列化方式(Jboss Marshalling)(三)
2017-12-14 14:32:09 】 浏览:991
Tags:Netty5 序列化 方式 Jboss Marshalling
nbsp;   this.version = version;


    }


 


    public byte[] getCmdCode() {


        return cmdCode;


    }


 


    public void setCmdCode(byte[] cmdCode) {


        this.cmdCode = cmdCode;


    }


 


    public byte getStartTag() {


        return startTag;


    }


 


    public void setStartTag(byte startTag) {


        this.startTag = startTag;


    }


 


    public int getLength() {


        return length;


    }


 


    public void setLength(int length) {


        this.length = length;


    }


 


    @Override


    public String toString() {


        return "MsgHeader{" +


                "startTag=" + startTag +


                ", cmdCode=" + Arrays.toString(cmdCode) +


                ", version=" + Arrays.toString(version) +


                ", length=" + length +


                '}';


    }


}


到此就完事了,netty的版本,和marshalling的版本,其他的版本我不清楚会不会有什么错误。


<dependency>


    <groupId>junit</groupId>


    <artifactId>junit</artifactId>


    <version>4.11</version>


    <scope>test</scope>


</dependency>


 


<!--netty -->


<dependency>


    <groupId>io.netty</groupId>


    <artifactId>netty-all</artifactId>


    <version>5.0.0.Alpha2</version>


</dependency>


 


<!--jboss-marshalling -->


<dependency>


    <groupId>org.jboss.marshalling</groupId>


    <artifactId>jboss-marshalling-serial</artifactId>


    <version>2.0.0.Beta2</version>


</dependency>


首页 上一页 1 2 3 4 5 6 下一页 尾页 3/6/6
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Python模块入门教程之smtplib 邮.. 下一篇Java 设计模式之适配器模式

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目