Top Description Constructors Methods
io.vertx.core.buffer.impl

pack-priv final Class VertxHeapByteBuf

extends UnpooledHeapByteBuf
Class Inheritance
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator, .UnpooledHeapByteBuf, .UnpooledUnsafeHeapByteBuf

An un-releasable, un-pooled, un-instrumented heap ByteBuf.

Constructor Summary

AccessConstructor and Description
public
VertxHeapByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)

Method Summary

Modifier and TypeMethod and Description
public boolean
release()

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.release.

Implements io.netty.util.ReferenceCounted.release.

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.

public boolean
release(int decrement)

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.release.

Implements io.netty.util.ReferenceCounted.release.

Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.

public ByteBuf
retain(int increment)

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.retain.

Implements io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

public ByteBuf
public ByteBuf
touch()

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.touch.

Implements io.netty.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes.

public ByteBuf
touch(Object hint)

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.touch.

Implements io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.

Inherited from io.netty.buffer.UnpooledHeapByteBuf:
_getByte_getInt_getIntLE_getLong_getLongLE_getShort_getShortLE_getUnsignedMedium_getUnsignedMediumLE_setByte_setInt_setIntLE_setLong_setLongLE_setMedium_setMediumLE_setShort_setShortLEallocallocateArrayarrayarrayOffsetcapacitycapacitycopydeallocatefreeArraygetBytegetBytesgetBytesgetBytesgetBytesgetBytesgetBytesgetIntgetIntLEgetLonggetLongLEgetShortgetShortLEgetUnsignedMediumgetUnsignedMediumLEhasArrayhasMemoryAddressinternalNioBufferisContiguousisDirectmemoryAddressnioBuffernioBufferCountnioBuffersorderreadBytesreadBytessetBytesetBytessetBytessetBytessetBytessetBytessetBytessetIntsetIntLEsetLongsetLongLEsetMediumsetMediumLEsetShortsetShortLEunwrap

Constructor Detail

VertxHeapByteBufback to summary
public VertxHeapByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)

Method Detail

releaseback to summary
public boolean release()

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.release.

Implements io.netty.util.ReferenceCounted.release.

Doc from io.netty.util.ReferenceCounted.release.

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.

Returns:boolean

true if and only if the reference count became 0 and this object has been deallocated

Annotations
@Override
releaseback to summary
public boolean release(int decrement)

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.release.

Implements io.netty.util.ReferenceCounted.release.

Doc from io.netty.util.ReferenceCounted.release.

Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.

Returns:boolean

true if and only if the reference count became 0 and this object has been deallocated

Annotations
@Override
retainback to summary
public ByteBuf retain(int increment)

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.retain.

Implements io.netty.util.ReferenceCounted.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
retainback to summary
public ByteBuf retain()

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.retain.

Implements io.netty.util.ReferenceCounted.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
touchback to summary
public ByteBuf touch()

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.touch.

Implements io.netty.util.ReferenceCounted.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override
touchback to summary
public ByteBuf touch(Object hint)

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.touch.

Implements io.netty.util.ReferenceCounted.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector.

Annotations
@Override