@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.| Modifier and Type | Field and Description |
|---|---|
private ByteBuffAllocator.Recycler |
recycler |
| 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) |
private ByteBuffAllocator.Recycler recycler
public RefCnt(ByteBuffAllocator.Recycler recycler)
public static RefCnt create(ByteBuffAllocator.Recycler recycler)
protected final void deallocate()
deallocate in class org.apache.hbase.thirdparty.io.netty.util.AbstractReferenceCountedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.