java.lang.IllegalArgumentException - if passed value is not a valid CLEANUP_* constant

getCleanupThreshold

public static float getCleanupThreshold()

Return the value used to calculate the size threshold for the uncollected buffers that triggers a cleanup operation. Cleanup is performed when the total size of uncollected memory has grown over the product of this value and the maximum Java heap size.

Returns:

a value between 0.0 and 1.0 used to calculate the cleanup frequency

setCleanupThreshold

protected static void setCleanupThreshold(float flCleanupThreshold)

Determines how often, to run the cleanupBuffers() method. Cleanup is performed when the uncollected memory has grown over the product of this value and the maximum Java heap size.

Parameters:

flCleanupThreshold - a value between 0.0 and 1.0 used to calculate the cleanup frequency