Updated protobuf example in javadoc
This commit is contained in:
parent
8bba7ccb5b
commit
75234e4cea
@ -47,7 +47,7 @@ import com.google.protobuf.Message;
|
||||
*
|
||||
* // Decoders
|
||||
* pipeline.addLast("frameDecoder",
|
||||
* new {@link LengthFieldBasedFrameDecoder}(1048576, 0, 4));
|
||||
* new {@link LengthFieldBasedFrameDecoder}(1048576, 0, 4, 0, 4));
|
||||
* pipeline.addLast("protobufDecoder",
|
||||
* new {@link ProtobufDecoder}(MyMessage.getDefaultInstance()));
|
||||
*
|
||||
|
@ -43,7 +43,7 @@ import com.google.protobuf.Message;
|
||||
*
|
||||
* // Decoders
|
||||
* pipeline.addLast("frameDecoder",
|
||||
* new {@link LengthFieldBasedFrameDecoder}(1048576, 0, 4));
|
||||
* new {@link LengthFieldBasedFrameDecoder}(1048576, 0, 4, 0, 4));
|
||||
* pipeline.addLast("protobufDecoder",
|
||||
* new {@link ProtobufDecoder}(MyMessage.getDefaultInstance()));
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user