List of usage examples for io.netty.buffer AbstractReferenceCountedByteBuf release
@Override public boolean release(int decrement)
From source file:com.noctarius.tengi.buffer.ByteBufMemoryBuffer.java
License:Open Source License
@Override public void free() { if (byteBuffer instanceof AbstractReferenceCountedByteBuf) { // Force a releasing of the underlying ByteBuf AbstractReferenceCountedByteBuf byteBuf = (AbstractReferenceCountedByteBuf) byteBuffer; byteBuf.release(byteBuf.refCnt()); }/*from ww w . jav a 2 s .co m*/ }