Add a TODO which should be done when buffer pool is implemented

This commit is contained in:
Trustin Lee 2012-08-10 10:19:01 +09:00
parent 501746aeff
commit f4fa5698c1

View File

@ -1468,6 +1468,7 @@ public class DefaultChannelPipeline implements ChannelPipeline {
public ChannelBuf newOutboundBuffer(ChannelHandlerContext ctx) throws Exception {
switch (channel.metadata().bufferType()) {
case BYTE:
// TODO: Use a direct buffer once buffer pooling is implemented.
return Unpooled.buffer();
case MESSAGE:
return Unpooled.messageBuffer();