Class calypso.util.Recycler
All Packages This Package Class Hierarchy Class Search Index
Class calypso.util.Recycler
java.lang.Object
|
+----calypso.util.Recycler
public class Recycler
extends java.lang.Object
implements calypso.util.MemoryPressure
{
// Fields 4
Object[] fBuffer;
int fCapacity;
int fCount;
static final int gDefaultCapacity;
// Constructors 2
public Recycler();
public Recycler(int);
// Methods 8
public void empty();
public Object getRecycledObject();
public void panic();
public void postGC(long, long);
public void preGC(long, long);
public void recycle(Object);
public void recycle(Object[]);
public void reset();
}
Fields
Object[] fBuffer
int fCount
int fCapacity
static final int gDefaultCapacity
Constructors
public Recycler()
public Recycler(int aGivenCapacity)
| Parameter | Description |
| aGivenCapacity | -- size of underlying buffer |
Methods
public void reset()
| Parameter | Description |
| none | Needs to be documented |
- Returns:
- none
public void recycle(Object anObject)
| Parameter | Description |
| anObject | -- object to be recycled |
- Returns:
- none
public void recycle(Object[] anObjectArray)
Recycles the entire contents of the given list.
public Object getRecycledObject()
| Parameter | Description |
| none | Needs to be documented |
- Returns:
- object or null
public void empty()
| Parameter | Description |
| none | Needs to be documented |
- Returns:
- none
public void preGC(long aCurrentHeapSpace,
long aMaximumHeapSpace)
- Implements:
- preGC in interface MemoryPressure
public void postGC(long aCurrentHeapSpace,
long aMaximumHeapSpace)
- Implements:
- postGC in interface MemoryPressure
public void panic()
- Implements:
- panic in interface MemoryPressure
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
|