public abstract class RefCounted<Type> extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected AtomicInteger | refcount | 
| protected Type | resource | 
| Constructor and Description | 
|---|
| RefCounted(Type resource) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract void | close() | 
| void | decref() | 
| Type | get() | 
| int | getRefcount() | 
| RefCounted<Type> | incref() | 
protected final Type resource
protected final AtomicInteger refcount
public RefCounted(Type resource)
public int getRefcount()
public final RefCounted<Type> incref()
public final Type get()
public void decref()
protected abstract void close()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.