@InterfaceAudience.Private
public class RefCnt
extends org.apache.hbase.thirdparty.io.netty.util.AbstractReferenceCounted
ByteBuff, if the
reference count become 0, it'll call ByteBuffAllocator.Recycler.free() exactly once.| Constructor and Description |
|---|
RefCnt(ByteBuffAllocator.Recycler recycler) |
| Modifier and Type | Method and Description |
|---|---|
static RefCnt |
create()
Create an
RefCnt with an initial reference count = 1. |
static RefCnt |
create(ByteBuffAllocator.Recycler recycler) |
protected void |
deallocate() |
org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted |
touch(Object hint) |
public RefCnt(ByteBuffAllocator.Recycler recycler)
public static RefCnt create()
public static RefCnt create(ByteBuffAllocator.Recycler recycler)
protected final void deallocate()
deallocate in class org.apache.hbase.thirdparty.io.netty.util.AbstractReferenceCountedpublic final org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted touch(Object hint)
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.