org.neo4j.kernel.ha
Class ResourcePool<R>
java.lang.Object
org.neo4j.kernel.ha.ResourcePool<R>
public abstract class ResourcePool<R>
- extends Object
|
Constructor Summary |
protected |
ResourcePool(int maxResources,
int maxUnused)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourcePool
protected ResourcePool(int maxResources,
int maxUnused)
create
protected abstract R create()
dispose
protected void dispose(R resource)
isAlive
protected boolean isAlive(R resource)
setMaxResources
public final void setMaxResources(int maxResources)
acquire
public final R acquire()
release
public final void release()
close
public final void close(boolean force)
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.