public abstract class AbstractRefCounted extends Object implements RefCounted
closeInternal() once it reaches
a 0 ref count| コンストラクタと説明 |
|---|
AbstractRefCounted(String name) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
alreadyClosed() |
protected abstract void |
closeInternal() |
void |
decRef()
Decreases the refCount of this instance.
|
String |
getName()
gets the name of this instance
|
void |
incRef()
Increments the refCount of this instance.
|
int |
refCount()
Returns the current reference count.
|
boolean |
tryIncRef()
Tries to increment the refCount of this instance.
|
public AbstractRefCounted(String name)
public final void incRef()
RefCountedincRef インタフェース内 RefCountedRefCounted.decRef(),
RefCounted.tryIncRef()public final boolean tryIncRef()
RefCountedtryIncRef インタフェース内 RefCountedRefCounted.decRef(),
RefCounted.incRef()public final void decRef()
RefCounteddecRef インタフェース内 RefCountedRefCounted.incRef()protected void alreadyClosed()
public int refCount()
public String getName()
protected abstract void closeInternal()
Copyright © 2009–2016. All rights reserved.