An inbound channel handler that copies byte buffers onto the JVM heap
and gives them a deterministic lifecycle.
An inbound channel handler that copies byte buffers onto the JVM heap
and gives them a deterministic lifecycle. This handler also makes sure to
use the unpooled byte buffer (regardless of what channel's allocator is) as
its destination thereby defining a clear boundaries between pooled and unpooled
environments.
Annotations
@Sharable()
Note
If your protocol manages ref-counting or if you are delegating ref-counting
to application space you don't need this handler in your pipeline. Every
other use case needs this handler or you will with very high probability
incur a direct buffer leak.
,
This handler recognizes both ByteBuf's and ByteBufHolder's (think of HTTP
messages extending ByteBufHolder's in Netty).
,
If the input buffer is not readable it's still guaranteed to be released
and replaced with EmptyByteBuf.
An inbound channel handler that copies byte buffers onto the JVM heap and gives them a deterministic lifecycle. This handler also makes sure to use the unpooled byte buffer (regardless of what channel's allocator is) as its destination thereby defining a clear boundaries between pooled and unpooled environments.
If your protocol manages ref-counting or if you are delegating ref-counting to application space you don't need this handler in your pipeline. Every other use case needs this handler or you will with very high probability incur a direct buffer leak.
,This handler recognizes both ByteBuf's and ByteBufHolder's (think of HTTP messages extending ByteBufHolder's in Netty).
,If the input buffer is not readable it's still guaranteed to be released and replaced with EmptyByteBuf.