Make ByteArrayEncoder sharable
This commit is contained in:
parent
8372e2ffc9
commit
289d474a23
@ -17,6 +17,7 @@ package io.netty.handler.codec.bytes;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import io.netty.channel.ChannelHandler.Sharable;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.channel.ChannelOutboundMessageHandlerAdapter;
|
||||
import io.netty.channel.ChannelPipeline;
|
||||
@ -47,6 +48,7 @@ import io.netty.handler.codec.LengthFieldPrepender;
|
||||
* }
|
||||
* </pre>
|
||||
*/
|
||||
@Sharable
|
||||
public class ByteArrayEncoder extends ChannelOutboundMessageHandlerAdapter<byte[]> {
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user