org.apache.solr.util
Class RefCounted<Type>
java.lang.Object
org.apache.solr.util.RefCounted<Type>
public abstract class RefCounted<Type>
- extends Object
- Version:
- $Id: RefCounted.java 472574 2006-11-08 18:25:52Z yonik $
- Author:
- yonik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resource
protected final Type resource
refcount
protected final AtomicInteger refcount
RefCounted
public RefCounted(Type resource)
incref
public final RefCounted<Type> incref()
get
public final Type get()
decref
public void decref()
close
protected abstract void close()
Copyright © 2006 - 2006 The Apache Software Foundation