Author: noble
Date: Wed May 27 11:58:18 2009
New Revision: 779125
URL: http://svn.apache.org/viewvc?rev=779125&view=rev
Log:
added a getter for refcount
Modified:
lucene/solr/trunk/src/java/org/apache/solr/util/RefCounted.java
Modified: lucene/solr/trunk/src/java/org/apache/solr/util/RefCounted.java
URL:
http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/util/RefCounted.java?rev=779125&r1=779124&r2=779125&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/util/RefCounted.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/util/RefCounted.java Wed May 27
11:58:18 2009
@@ -39,6 +39,10 @@
this.resource = resource;
}
+ public int getRefcount() {
+ return refcount.get();
+ }
+
public final RefCounted<Type> incref() {
refcount.incrementAndGet();
return this;