From 23d1d0bc2f16353f08d5b09b39faf3082b0e5bb0 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Wed, 27 May 2009 11:58:18 +0000 Subject: [PATCH] added a getter for refcount git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@779125 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/util/RefCounted.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/org/apache/solr/util/RefCounted.java b/src/java/org/apache/solr/util/RefCounted.java index c9686c85523..508fb01df90 100644 --- a/src/java/org/apache/solr/util/RefCounted.java +++ b/src/java/org/apache/solr/util/RefCounted.java @@ -39,6 +39,10 @@ public abstract class RefCounted { this.resource = resource; } + public int getRefcount() { + return refcount.get(); + } + public final RefCounted incref() { refcount.incrementAndGet(); return this;