Class AdaptableBuffer<T extends ResourceSupport<Buffer,​T>>

    • Method Detail

      • asByteBuf

        public ByteBuf asByteBuf()
        Description copied from interface: ByteBufConvertible
        Turn this object into a ByteBuf. This does not increment the reference count of the ByteBuf instance. The conversion or exposure of the ByteBuf must be idempotent, so that this method can be called either once, or multiple times, without causing any change in program behaviour.
        Specified by:
        asByteBuf in interface ByteBufConvertible
        Returns:
        A ByteBuf instance from this object.
      • refCnt

        public int refCnt()
        Specified by:
        refCnt in interface io.netty5.util.ReferenceCounted
      • retain

        public io.netty5.util.ReferenceCounted retain()
        Specified by:
        retain in interface io.netty5.util.ReferenceCounted
      • retain

        public io.netty5.util.ReferenceCounted retain​(int increment)
        Specified by:
        retain in interface io.netty5.util.ReferenceCounted
      • touch

        public io.netty5.util.ReferenceCounted touch()
        Specified by:
        touch in interface io.netty5.util.ReferenceCounted
      • touch

        public AdaptableBuffer<T> touch​(Object hint)
        Description copied from interface: Resource
        Record the current access location for debugging purposes. This information may be included if the resource throws a life-cycle related exception, or if it leaks. If this resource has already been closed, then this method has no effect.
        Specified by:
        touch in interface io.netty5.util.ReferenceCounted
        Specified by:
        touch in interface Resource<T extends ResourceSupport<Buffer,​T>>
        Overrides:
        touch in class ResourceSupport<Buffer,​T extends ResourceSupport<Buffer,​T>>
        Parameters:
        hint - An optional hint about this access and its context. May be null.
        Returns:
        This resource instance.
      • release

        public boolean release()
        Specified by:
        release in interface io.netty5.util.ReferenceCounted
      • release

        public boolean release​(int decrement)
        Specified by:
        release in interface io.netty5.util.ReferenceCounted
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object