|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.ognl.ObjectArrayPool
public final class ObjectArrayPool
This class was previously intended to produce performance improvement.
This hand-made object pooling is now a bottleneck under high load.
We now rely on the new jvm garbage collection improvements to handle object allocation efficiently.
| Constructor Summary | |
|---|---|
ObjectArrayPool()
Deprecated. |
|
| Method Summary | |
|---|---|
Object[] |
create(int arraySize)
Deprecated. |
Object[] |
create(Object singleton)
Deprecated. |
Object[] |
create(Object object1,
Object object2)
Deprecated. |
Object[] |
create(Object object1,
Object object2,
Object object3)
Deprecated. |
Object[] |
create(Object object1,
Object object2,
Object object3,
Object object4)
Deprecated. |
Object[] |
create(Object object1,
Object object2,
Object object3,
Object object4,
Object object5)
Deprecated. |
void |
recycle(Object[] value)
Deprecated. object-pooling now relies on the jvm garbage collection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectArrayPool()
| Method Detail |
|---|
public Object[] create(int arraySize)
public Object[] create(Object singleton)
public Object[] create(Object object1,
Object object2)
public Object[] create(Object object1,
Object object2,
Object object3)
public Object[] create(Object object1,
Object object2,
Object object3,
Object object4)
public Object[] create(Object object1,
Object object2,
Object object3,
Object object4,
Object object5)
public void recycle(Object[] value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||