mirror of https://github.com/apache/lucene.git
added a getter for refcount
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@779125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e1d1e08b45
commit
23d1d0bc2f
|
@ -39,6 +39,10 @@ public abstract class RefCounted<Type> {
|
|||
this.resource = resource;
|
||||
}
|
||||
|
||||
public int getRefcount() {
|
||||
return refcount.get();
|
||||
}
|
||||
|
||||
public final RefCounted<Type> incref() {
|
||||
refcount.incrementAndGet();
|
||||
return this;
|
||||
|
|
Loading…
Reference in New Issue