ByteBufHolder that holds it's data in a ByteBuf.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | content()
Implements io. ByteBufHolder.
|
| protected final String | |
| public ByteBufHolder | |
| public ByteBufHolder | |
| public boolean | Returns: true if this object is the same as the obj
argument; false otherwise.the reference object with which to compare. o)Overrides java. equals operation is restricted to
work only with instances of the same class.
|
| public int | |
| public int | refCnt()
Implements io. |
| public boolean | release()
Implements io. 1 and deallocates this object if the reference count reaches at
0.
|
| public boolean | release(int decrement)
Implements io. decrement and deallocates this object if the reference
count reaches at 0.
|
| public ByteBufHolder | replace(ByteBuf content)
Implements io. ByteBufHolder which contains the specified content.
|
| public ByteBufHolder | |
| public ByteBufHolder | retain(int increment)
Implements io. increment.
|
| public ByteBufHolder | retainedDuplicate()
Implements io. ByteBufHolder.
|
| public String | |
| public ByteBufHolder | touch()
Implements io. |
| public ByteBufHolder | touch(Object hint)
Implements io. |
| data | back to summary |
|---|---|
| private final ByteBuf data | |
| DefaultByteBufHolder | back to summary |
|---|---|
| public DefaultByteBufHolder(ByteBuf data) | |
| content | back to summary |
|---|---|
| public ByteBuf content() Implements io. Doc from io. Return the data which is held by this
| |
| contentToString | back to summary |
|---|---|
| protected final String contentToString() Return | |
| copy | back to summary |
|---|---|
| public ByteBufHolder copy() Implements io. Doc from io. Creates a deep copy of this
This method calls
| |
| duplicate | back to summary |
|---|---|
| public ByteBufHolder duplicate() Implements io. Doc from io. Duplicates this
This method calls
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. This implementation of the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| refCnt | back to summary |
|---|---|
| public int refCnt() Implements io. Doc from io. Returns the reference count of this object. If
| |
| release | back to summary |
|---|---|
| public boolean release() Implements io. Doc from io. Decreases the reference count by
| |
| release | back to summary |
|---|---|
| public boolean release(int decrement) Implements io. Doc from io. Decreases the reference count by the specified
| |
| replace | back to summary |
|---|---|
| public ByteBufHolder replace(ByteBuf content) Implements io. Doc from io. Returns a new
Override this method to return a new instance of this object whose content is set to the specified
| |
| retain | back to summary |
|---|---|
| public ByteBufHolder retain() Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public ByteBufHolder retain(int increment) Implements io. Doc from io. Increases the reference count by the specified
| |
| retainedDuplicate | back to summary |
|---|---|
| public ByteBufHolder retainedDuplicate() Implements io. Doc from io. Duplicates this
This method calls
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public ByteBufHolder touch() Implements io. Doc from io. 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
| |
| touch | back to summary |
|---|---|
| public ByteBufHolder touch(Object hint) Implements io. Doc from io. 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
| |