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:
Noble Paul 2009-05-27 11:58:18 +00:00
parent e1d1e08b45
commit 23d1d0bc2f
1 changed files with 4 additions and 0 deletions

View File

@ -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;