You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by no...@apache.org on 2009/05/27 13:58:18 UTC

svn commit: r779125 - /lucene/solr/trunk/src/java/org/apache/solr/util/RefCounted.java

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;