Make ByteArrayEncoder sharable

This commit is contained in:
Trustin Lee 2013-03-14 17:44:32 +09:00
parent 8372e2ffc9
commit 289d474a23

View File

@ -17,6 +17,7 @@ package io.netty.handler.codec.bytes;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled; import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundMessageHandlerAdapter; import io.netty.channel.ChannelOutboundMessageHandlerAdapter;
import io.netty.channel.ChannelPipeline; import io.netty.channel.ChannelPipeline;
@ -47,6 +48,7 @@ import io.netty.handler.codec.LengthFieldPrepender;
* } * }
* </pre> * </pre>
*/ */
@Sharable
public class ByteArrayEncoder extends ChannelOutboundMessageHandlerAdapter<byte[]> { public class ByteArrayEncoder extends ChannelOutboundMessageHandlerAdapter<byte[]> {
@Override @Override