com.prosyst.util.pool
Class ObjectPool
java.lang.Object
com.prosyst.util.pool.ObjectPool
public class ObjectPool
- extends java.lang.Object
|
Constructor Summary |
|
ObjectPool(java.lang.Class template,
int size,
int factor)
|
|
ObjectPool(java.lang.Class template,
int size,
int factor,
int minimumFill)
|
protected |
ObjectPool(java.lang.Class template,
ObjectCreator oc,
int size,
int factor,
int minimumFill)
|
|
ObjectPool(ObjectCreator oc,
int size,
int factor)
|
|
ObjectPool(ObjectCreator oc,
int size,
int factor,
int minimumFill)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buff
protected java.lang.Object[][] buff
nextFree
protected int nextFree
size
protected int size
minimumFill
protected int minimumFill
factor
protected int factor
minfSize
protected int minfSize
minffactor
protected int minffactor
dontExtend
protected boolean dontExtend
oc
protected ObjectCreator oc
ObjectPool
public ObjectPool(ObjectCreator oc,
int size,
int factor)
ObjectPool
public ObjectPool(java.lang.Class template,
int size,
int factor)
ObjectPool
public ObjectPool(java.lang.Class template,
int size,
int factor,
int minimumFill)
ObjectPool
public ObjectPool(ObjectCreator oc,
int size,
int factor,
int minimumFill)
ObjectPool
protected ObjectPool(java.lang.Class template,
ObjectCreator oc,
int size,
int factor,
int minimumFill)
getInstance
public java.lang.Object getInstance()
throws java.lang.Exception
- Throws:
java.lang.Exception
clear
public void clear()
shrink
protected void shrink(int count)
shrink
public void shrink()
getObject
public java.lang.Object getObject()
releaseObject
public boolean releaseObject(java.lang.Object obj)
Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved