public abstract class AbstractReferenceCountedByteBuf extends AbstractByteBuf
ByteBuf
implementations that count references.Modifier | Constructor and Description |
---|---|
protected |
AbstractReferenceCountedByteBuf(int maxCapacity) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
deallocate()
Called once
refCnt() is equals 0. |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
ByteBuf |
retain() |
ByteBuf |
retain(int increment) |
protected void |
setRefCnt(int refCnt)
An unsafe operation intended for use by a subclass that sets the reference count of the buffer directly
|
_getByte, _getInt, _getLong, _getShort, _getUnsignedMedium, _setByte, _setInt, _setLong, _setMedium, _setShort, adjustMarkers, bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkIndex, checkIndex, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardReadBytes, discardSomeReadBytes, duplicate, ensureAccessible, ensureWritable, ensureWritable, ensureWritableBytes, equals, forEachByte, forEachByte, forEachByteDesc, forEachByteDesc, getBoolean, getByte, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getInt, getLong, getMedium, getShort, getUnsignedByte, getUnsignedInt, getUnsignedMedium, getUnsignedShort, hashCode, indexOf, indexOf, isReadable, isReadable, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxCapacity, maxWritableBytes, nioBuffer, nioBuffer, nioBuffers, order, readable, readableBytes, readBoolean, readByte, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readChar, readDouble, readerIndex, readerIndex, readFloat, readInt, readLong, readMedium, readShort, readSlice, readUnsignedByte, readUnsignedInt, readUnsignedMedium, readUnsignedShort, resetReaderIndex, resetWriterIndex, setBoolean, setByte, setBytes, setBytes, setBytes, setChar, setDouble, setFloat, setIndex, setInt, setLong, setMedium, setShort, setZero, skipBytes, slice, slice, toString, toString, toString, writable, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeMedium, writerIndex, writerIndex, writeShort, writeZero
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
alloc, array, arrayOffset, capacity, capacity, copy, getBytes, getBytes, getBytes, getBytes, getBytes, hasArray, hasMemoryAddress, internalNioBuffer, isDirect, memoryAddress, nioBufferCount, nioBuffers, order, setBytes, setBytes, setBytes, setBytes, setBytes, unwrap
protected AbstractReferenceCountedByteBuf(int maxCapacity)
public final int refCnt()
protected final void setRefCnt(int refCnt)
public ByteBuf retain()
public ByteBuf retain(int increment)
public final boolean release()
public final boolean release(int decrement)
protected abstract void deallocate()
refCnt()
is equals 0.Copyright © 2008-2013 The Netty Project. All Rights Reserved.